branch : pmacs2
This commit is contained in:
moculus 2009-04-03 21:55:05 +00:00
parent 5403988c14
commit 1813fdabcd
1 changed files with 4 additions and 1 deletions

View File

@ -9,7 +9,10 @@ class ArgumentGrammar(Grammar): rules = [PatternRule(r'data', r'[^}]+')]
class StringGrammar1(Grammar): rules = [PatternRule(r'data', r"[^']+")]
class StringGrammar2(Grammar): rules = [PatternRule(r'data', r"(?:[^']|'(?!'))+")]
class FalseGrammar(Grammar): rules = [PatternRule('data', r'[^\\]+')]
class FalseGrammar(Grammar): rules = [
PatternRule('data', r'[^\\]+'),
RegionRule('comment', r'\\if', None, r'\\fi'),
]
class LatexGrammar(Grammar):
rules = [