diff options
Diffstat (limited to 'giscanner/annotationparser.py')
-rw-r--r-- | giscanner/annotationparser.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py index 6eacfade..5e45e5dc 100644 --- a/giscanner/annotationparser.py +++ b/giscanner/annotationparser.py @@ -508,7 +508,11 @@ class AnnotationParser(object): argname = TAG_RETURNS tag = DocTag(block, argname) tag.set_position(block.position.offset(lineno)) - second_colon_index = line.rfind(':') + line_after_first_colon_space = line[first_colonspace_index + 2:] + second_colon_index = line_after_first_colon_space.find(':') + if second_colon_index >= 0: + second_colon_index += first_colonspace_index + 2 + assert line[second_colon_index] == ':' found_options = False if second_colon_index > first_colonspace_index: value_line = \ |