parent
5124367014
commit
25bcb7a8d3
|
@ -22,6 +22,7 @@ class TagGrammar(Grammar):
|
||||||
|
|
||||||
class TemplateGrammar(Grammar):
|
class TemplateGrammar(Grammar):
|
||||||
rules = [
|
rules = [
|
||||||
|
PatternRule(r'escaped', r'&[^;]+;'),
|
||||||
RegionRule(r'comment', r'<!--', Grammar, r'-->'),
|
RegionRule(r'comment', r'<!--', Grammar, r'-->'),
|
||||||
RegionRule(r'directive', r'\[\%', DirectiveGrammar, r'%%\]'),
|
RegionRule(r'directive', r'\[\%', DirectiveGrammar, r'%%\]'),
|
||||||
RegionRule(r'tt_tag', r'</?', TagGrammar, r'/?>'),
|
RegionRule(r'tt_tag', r'</?', TagGrammar, r'/?>'),
|
||||||
|
|
Loading…
Reference in New Issue