We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33a446d commit 2fe1b7aCopy full SHA for 2fe1b7a
pygccxml/parser/scanner.py
@@ -218,11 +218,9 @@ def _handle_comment(self, declaration):
218
file_text = self.__files_text.get(file_decl)
219
# Use lines and columns to capture only comment text
220
for indx in range(comm_decl.begin_line - 1, comm_decl.end_line):
221
- # Col data only useful on first and last lines
222
- strt_idx = 0
+ # Col data only different on the last line
223
end_idx = -1
224
- if indx == comm_decl.begin_line - 1:
225
- strt_idx = comm_decl.begin_column - 1
+ strt_idx = comm_decl.begin_column - 1
226
if indx == comm_decl.end_line - 1:
227
end_idx = comm_decl.end_column
228
comm_line = file_text[indx]
0 commit comments