parent
067f35edfc
commit
9dd4fb3c02
|
@ -6,6 +6,7 @@ from lex import Grammar, PatternRule, RegionRule, OverridePatternRule
|
|||
class StringGrammar(Grammar):
|
||||
rules = [
|
||||
PatternRule(r'octal', r'\\[0-7]{3}'),
|
||||
PatternRule(r'hex', r'\\x[0-9a-fA-F]{2}'),
|
||||
PatternRule(r'escaped', r'\\.'),
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in New Issue