summaryrefslogtreecommitdiff
path: root/pycparser/c_lexer.py
diff options
context:
space:
mode:
Diffstat (limited to 'pycparser/c_lexer.py')
-rw-r--r--pycparser/c_lexer.py4
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]+'