diff options
author | Georg Brandl <georg@python.org> | 2013-05-19 11:37:50 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2013-05-19 11:37:50 +0200 |
commit | 2a0536f05e24a645ec831301cdbd9d9073a0d9ea (patch) | |
tree | 1c8f12ebd413f82fbe75a4170748195cd42c287a | |
parent | a494b736786075b087479f6405405d15e1867325 (diff) | |
download | pygments-2a0536f05e24a645ec831301cdbd9d9073a0d9ea.tar.gz |
Closes #866: allow digits in CMake directives.
-rw-r--r-- | pygments/lexers/text.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/text.py b/pygments/lexers/text.py index f3feec83..de9979cf 100644 --- a/pygments/lexers/text.py +++ b/pygments/lexers/text.py @@ -1631,7 +1631,7 @@ class CMakeLexer(RegexLexer): # r'VTK_MAKE_INSTANTIATOR|VTK_WRAP_JAVA|VTK_WRAP_PYTHON|' # r'VTK_WRAP_TCL|WHILE|WRITE_FILE|' # r'COUNTARGS)\b', Name.Builtin, 'args'), - (r'\b([A-Za-z_]+)([ \t]*)(\()', bygroups(Name.Builtin, Text, + (r'\b(\w+)([ \t]*)(\()', bygroups(Name.Builtin, Text, Punctuation), 'args'), include('keywords'), include('ws') |