parent
067f35edfc
commit
9dd4fb3c02
|
@ -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'\\.'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue