diff --git a/mode/xml.py b/mode/xml.py index 1866fc3..5b75eef 100644 --- a/mode/xml.py +++ b/mode/xml.py @@ -7,7 +7,7 @@ class TagGrammar(Grammar): RegionRule(r'string', r"'", Grammar, r"'"), PatternRule(r'namespace', r'[a-zA-Z_]+:'), PatternRule(r'attrname', r'[^ =>\n]+(?==)'), - PatternRule(r'name', r'[^\[\] =>\n]+'), + PatternRule(r'name', r'[^/\[\] =>\n]+'), ] class XMLGrammar(Grammar): @@ -37,7 +37,7 @@ class XmlCreateTag(method.Method): class XML(mode.Fundamental): modename = 'XML' - extensions = ['.xml', '.xml.in'] + extensions = ['.xml', '.xml.in', '.xsl'] grammar = XMLGrammar colors = { 'xml_tag.start': ('default', 'default', 'bold'),