diff --git a/mode/xml.py b/mode/xml.py index f728d30..cf9c8e4 100644 --- a/mode/xml.py +++ b/mode/xml.py @@ -21,7 +21,7 @@ class TagGrammar(Grammar): rules = [ PatternRule(r'attrname', r'[a-zA-Z_][a-zA-Z0-9_]+(?==)'), PatternRule(r'namespace', r'[a-zA-Z_]+(?=:)'), - PatternRule(r'name', r'[a-zA-Z_][a-zA-Z0-9_]+'), + PatternRule(r'name', r'[a-zA-Z_][a-zA-Z0-9_]*'), PatternRule(r'delimiter', r'[/=]'), RegionRule(r'string', r'"', StringGrammar1, r'"'), RegionRule(r'string', r"'", StringGrammar2, r"'"),