diff options
Diffstat (limited to 'pycparser/c_lexer.py')
-rw-r--r-- | pycparser/c_lexer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pycparser/c_lexer.py b/pycparser/c_lexer.py index 00dcd97..d9941c1 100644 --- a/pycparser/c_lexer.py +++ b/pycparser/c_lexer.py @@ -52,8 +52,8 @@ class CLexer(object): # Allow either "# line" or "# <num>" to support GCC's # cpp output # - self.line_pattern = re.compile('([ \t]*line\W)|([ \t]*\d+)') - self.pragma_pattern = re.compile('[ \t]*pragma\W') + self.line_pattern = re.compile(r'([ \t]*line\W)|([ \t]*\d+)') + self.pragma_pattern = re.compile(r'[ \t]*pragma\W') def build(self, **kwargs): """ Builds the lexer from the specification. Must be |