summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2007-12-14 22:43:00 +0100
committergbrandl <devnull@localhost>2007-12-14 22:43:00 +0100
commit46be17df1fa6309d163f8721bfbc7320c75e4b40 (patch)
tree5da15a6a919dab6c14ad1a0c2213904ba37baa2e
parent8600c00eb057f5c04b9437d69802f86d118e1add (diff)
downloadpygments-46be17df1fa6309d163f8721bfbc7320c75e4b40.tar.gz
Fix #309: more c++ extensions.
-rw-r--r--pygments/formatters/latex.py2
-rw-r--r--pygments/lexers/compiled.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pygments/formatters/latex.py b/pygments/formatters/latex.py
index 7bd8e8b9..1d37d11b 100644
--- a/pygments/formatters/latex.py
+++ b/pygments/formatters/latex.py
@@ -231,7 +231,7 @@ class LatexFormatter(Formatter):
else:
outfile.write(value)
- outfile.write('\n\\end{Verbatim}\n')
+ outfile.write('\\end{Verbatim}\n')
if self.full:
realoutfile.write(DOC_TEMPLATE %
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py
index a247e7e3..d37e0a57 100644
--- a/pygments/lexers/compiled.py
+++ b/pygments/lexers/compiled.py
@@ -134,7 +134,7 @@ class CppLexer(RegexLexer):
"""
name = 'C++'
aliases = ['cpp', 'c++']
- filenames = ['*.cpp', '*.hpp', '*.c++', '*.h++']
+ filenames = ['*.cpp', '*.hpp', '*.c++', '*.h++', '*.cc', '*.hh', '*.cxx', '*.hxx']
mimetypes = ['text/x-c++hdr', 'text/x-c++src']
tokens = {