diff options
author | Eli Bendersky <eliben@gmail.com> | 2013-06-12 06:07:40 -0700 |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2013-06-12 06:07:40 -0700 |
commit | 1e0509ec3dae923063375ae52848589b5db18e68 (patch) | |
tree | b5ed4e7e72688d6e044af93dc06e41b47d573232 /pycparser/c_lexer.py | |
parent | 45d276141dc9d216b8c71decb7601699fd1cf7ae (diff) | |
parent | 3576ed19cb25158fa0cad4a6d44d67648f686283 (diff) | |
download | pycparser-1e0509ec3dae923063375ae52848589b5db18e68.tar.gz |
Merge pull request #4 from Syeberman/dollar-in-identifier
Dollar signs in identifiers
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 42802e5..610bbbe 100644 --- a/pycparser/c_lexer.py +++ b/pycparser/c_lexer.py @@ -169,8 +169,8 @@ class CLexer(object): ## ## - # valid C identifiers (K&R2: A.2.3) - identifier = r'[a-zA-Z_][0-9a-zA-Z_]*' + # valid C identifiers (K&R2: A.2.3), plus '$' (supported by some compilers) + identifier = r'[a-zA-Z_$][0-9a-zA-Z_$]*' hex_prefix = '0[xX]' hex_digits = '[0-9a-fA-F]+' |