summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2016-02-02 10:40:00 +0100
committerGeorg Brandl <georg@python.org>2016-02-02 10:40:00 +0100
commit1772cdf37b5148a8edd7201ac8da79fac70ddeee (patch)
treecedc90f164dda151553434b8f9072dcb33d3599e
parentb351be093f4674c4ddaab441420afab5d6ca6013 (diff)
downloadpygments-1772cdf37b5148a8edd7201ac8da79fac70ddeee.tar.gz
Allow underscores in C++ std header names.
-rw-r--r--pygments/lexers/c_cpp.py2
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