branch : pmacs2
This commit is contained in:
moculus 2008-09-29 02:34:56 +00:00
parent 067f35edfc
commit 9dd4fb3c02
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ from lex import Grammar, PatternRule, RegionRule, OverridePatternRule
class StringGrammar(Grammar): class StringGrammar(Grammar):
rules = [ rules = [
PatternRule(r'octal', r'\\[0-7]{3}'), PatternRule(r'octal', r'\\[0-7]{3}'),
PatternRule(r'hex', r'\\x[0-9a-fA-F]{2}'),
PatternRule(r'escaped', r'\\.'), PatternRule(r'escaped', r'\\.'),
] ]