From 550e0636348e3d9ff2aa32d8ea85f7619996432a Mon Sep 17 00:00:00 2001 From: moculus Date: Wed, 21 May 2008 21:54:34 +0000 Subject: [PATCH] handle xsl and namespaced close tags better --HG-- branch : pmacs2 --- mode/xml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'),