diff --git a/plugins_/syntaxtest_dev.py b/plugins_/syntaxtest_dev.py index cb6154a0..5f00ac05 100644 --- a/plugins_/syntaxtest_dev.py +++ b/plugins_/syntaxtest_dev.py @@ -42,7 +42,7 @@ def get_syntax_test_tokens(view): match = None if line.size() < 1000: # no point checking longer lines as they are unlikely to match first_line = view.substr(line) - match = re.match(r'^(?P\s*\S+)' + match = re.match(r'^(?P\s*.+?)' r'\s+SYNTAX TEST\s+' r'"(?P[^"]+)"' r'\s*(?P\S+)?$', first_line)