diff options
author | Sye van der Veen <svanderveen@blackberry.com> | 2013-06-10 13:27:58 -0400 |
---|---|---|
committer | Sye van der Veen <svanderveen@blackberry.com> | 2013-06-10 13:27:58 -0400 |
commit | 3576ed19cb25158fa0cad4a6d44d67648f686283 (patch) | |
tree | 6084477ebe8a5773361a42fa2325fe8c8a7f31b8 /pycparser/c_lexer.py | |
parent | 262a4157db3737efa096d2c77d4845458fe638ef (diff) | |
download | pycparser-3576ed19cb25158fa0cad4a6d44d67648f686283.tar.gz |
Dollar signs in identifiers; non-standard, but supported by many compilers
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 553e43f..f75769f 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]+' |