diff options
author | Georg Brandl <georg@python.org> | 2016-02-02 10:40:00 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2016-02-02 10:40:00 +0100 |
commit | 1772cdf37b5148a8edd7201ac8da79fac70ddeee (patch) | |
tree | cedc90f164dda151553434b8f9072dcb33d3599e | |
parent | b351be093f4674c4ddaab441420afab5d6ca6013 (diff) | |
download | pygments-1772cdf37b5148a8edd7201ac8da79fac70ddeee.tar.gz |
Allow underscores in C++ std header names.
-rw-r--r-- | pygments/lexers/c_cpp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/c_cpp.py b/pygments/lexers/c_cpp.py index 5a7137ea..1f46d179 100644 --- a/pygments/lexers/c_cpp.py +++ b/pygments/lexers/c_cpp.py @@ -235,7 +235,7 @@ class CppLexer(CFamilyLexer): } def analyse_text(text): - if re.search('#include <[a-z]+>', text): + if re.search('#include <[a-z_]+>', text): return 0.2 if re.search('using namespace ', text): return 0.4 |