diff --git a/mode/python.py b/mode/python.py index 71e8656..f1c6eaa 100644 --- a/mode/python.py +++ b/mode/python.py @@ -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'\\.'), ]