handle xsl and namespaced close tags better

--HG--
branch : pmacs2
This commit is contained in:
moculus 2008-05-21 21:54:34 +00:00
parent 67a74b2d09
commit 550e063634
1 changed files with 2 additions and 2 deletions

View File

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