Commits

Tim Hatch committed f4cda0f

Include more file extensions for C++ lexer.

Fixes #809

  • Participants
  • Parent commits e74fd19

Comments (0)

Files changed (1)

pygments/lexers/compiled.py

     name = 'C++'
     aliases = ['cpp', 'c++']
     filenames = ['*.cpp', '*.hpp', '*.c++', '*.h++',
-                 '*.cc', '*.hh', '*.cxx', '*.hxx']
+                 '*.cc', '*.hh', '*.cxx', '*.hxx',
+                 '*.C', '*.H', '*.cp', '*.CPP']
     mimetypes = ['text/x-c++hdr', 'text/x-c++src']
 
     #: optional Comment or Whitespace