From 9dd4fb3c029d92f9216156a8c3ebb05bea3ad1bf Mon Sep 17 00:00:00 2001 From: moculus Date: Mon, 29 Sep 2008 02:34:56 +0000 Subject: [PATCH] --HG-- branch : pmacs2 --- mode/python.py | 1 + 1 file changed, 1 insertion(+) 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'\\.'), ]