Skip to content

Commit 9e77ee5

Browse files
committed
add back removed :zeroLengthStart?: true
1 parent 0658996 commit 9e77ee5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/languages/cpp/generate.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ def generateBlockFinder( name:"", tag_as:"", start_pattern:nil, needs_semicolon:
130130
PatternRange.new(
131131
tag_as: "meta.head."+name,
132132
start_pattern: /\G ?/,
133+
zeroLengthStart?: true,
133134
end_pattern: newPattern(
134135
match: @open_curly_brace.or(lookAheadFor(/;/)),
135136
tag_as: "punctuation.section.block.begin.bracket.curly."+name
@@ -319,6 +320,7 @@ def generateBlockFinder( name:"", tag_as:"", start_pattern:nil, needs_semicolon:
319320
PatternRange.new(
320321
# the first position
321322
start_pattern: lookAheadFor(/^/),
323+
zeroLengthStart?: true,
322324
# ensure end never matches
323325
# why? because textmate will keep looking until it hits the end of the file (which is the purpose of this wrapper)
324326
# how? because the regex is trying to find "not" and then checks to see if "not" == "possible" (which can never happen)

0 commit comments

Comments
 (0)