Skip to content

Commit b86cf0e

Browse files
Keith HallFichteFoll
authored andcommitted
syntax test token regex is now non-greedy for whitespace after the token
1 parent a9b5ce3 commit b86cf0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins_/syntaxtest_dev.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def get_syntax_test_tokens(view):
4242
match = None
4343
if line.size() < 1000: # no point checking longer lines as they are unlikely to match
4444
first_line = view.substr(line)
45-
match = re.match(r'^(?P<comment_start>\s*.+)'
45+
match = re.match(r'^(?P<comment_start>\s*.+?)'
4646
r'\s+SYNTAX TEST\s+'
4747
r'"(?P<syntax_file>[^"]+)"'
4848
r'\s*(?P<comment_end>\S+)?$', first_line)

0 commit comments

Comments
 (0)