mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Only expect prefix when there are 5 or more segments
This commit is contained in:
@@ -24,10 +24,14 @@ class TagGenerator
|
||||
|
||||
label = sections[0]
|
||||
line = parseInt(sections[2]) - 1
|
||||
if prefix = @parsePrefix(sections[4])
|
||||
label = "#{prefix}::#{label}"
|
||||
if signature = @parsePrefix(sections[5])
|
||||
label = "#{label}#{signature}"
|
||||
if sections.length > 5
|
||||
if prefix = @parsePrefix(sections[4])
|
||||
label = "#{prefix}::#{label}"
|
||||
if suffix = @parsePrefix(sections[5])
|
||||
label = "#{label}#{suffix}"
|
||||
else
|
||||
if suffix = @parsePrefix(sections[4])
|
||||
label = "#{label}#{suffix}"
|
||||
|
||||
tag =
|
||||
position: new Point(line, 0)
|
||||
|
||||
Reference in New Issue
Block a user