branch : pmacs2
This commit is contained in:
moculus 2009-04-03 21:52:30 +00:00
parent 4df49ab1e9
commit 5403988c14
1 changed files with 3 additions and 0 deletions

View File

@ -9,9 +9,12 @@ 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 LatexGrammar(Grammar):
rules = [
PatternRule(r'comment', r'\%.*$'),
RegionRule('comment', r'\\iffalse', Grammar, r'\\fi'),
PatternRule(r'latex_wrapper', r'\\(?:begin|end)'),
PatternRule(r'latex_control', r'\\[a-zA-Z]+'),
RegionRule(r'latex_argument', r'{', ArgumentGrammar, r'}'),