diff --git a/plugins/syntaxtest_dev.py b/plugins/syntaxtest_dev.py index 870a959e..7c07230e 100644 --- a/plugins/syntaxtest_dev.py +++ b/plugins/syntaxtest_dev.py @@ -30,11 +30,18 @@ syntax_test_header_regex = re.compile( - r'^(?P\s*.+?)' - r'\s+SYNTAX TEST\s+' - r'(?P(?:partial-symbols|(?:reindent(?:-un(?:indented|changed))?)\s+)*)' - r'"(?P[^"]+)"' - r'\s*(?P\S+)?$' + r''' + ^(?P\s*.+?) + \s+SYNTAX[ ]TEST\s+ + (?P(?: + (?: + partial-symbols + | (?:reindent(?:-un(?:indented|changed))?) + )\s+)* + ) + "(?P[^"]+)"\s* + (?P\S+)?$''', + re.X )