From cf128bc0c3ead503f4ac3f392523b0b58f36739a Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Thu, 1 Dec 2016 13:34:00 +0100 Subject: [PATCH] [tools] Add another extension for c++ files. --- README.md | 2 +- tools.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fd6e0b0..8601f48 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Extensions | Tools .java | [uncrustify](http://uncrustify.sourceforge.net/) .c .h | [c_syntax_gcc](https://gcc.gnu.org/) • [c_syntax_clang](http://clang.llvm.org/) • [splint](http://www.splint.org/) • [uncrustify](http://uncrustify.sourceforge.net/) .o | [objdump_headers](https://en.wikipedia.org/wiki/Objdump) • [objdump_disassemble](https://en.wikipedia.org/wiki/Objdump) • [readelf](https://en.wikipedia.org/wiki/Objdump) -.cc .cpp | [cpp_syntax_gcc](https://gcc.gnu.org/) • [cpp_syntax_clang](http://clang.llvm.org/) • bcpp • [uncrustify](http://uncrustify.sourceforge.net/) +.cc .cpp .hpp | [cpp_syntax_gcc](https://gcc.gnu.org/) • [cpp_syntax_clang](http://clang.llvm.org/) • bcpp • [uncrustify](http://uncrustify.sourceforge.net/) .pdf | [pdf2txt](http://www.unixuser.org/~euske/python/pdfminer/) .html | [html_syntax](http://www.html-tidy.org/) • [tidy](http://www.html-tidy.org/) • [html2text](http://www.mbayer.de/html2text/) .php | [php5_syntax](https://en.wikipedia.org/wiki/PHP) diff --git a/tools.py b/tools.py index b691fd4..5fc0fac 100644 --- a/tools.py +++ b/tools.py @@ -780,7 +780,8 @@ TOOLS_FOR_EXTENSIONS = \ (["java"], [uncrustify]), (["c", "h"], [c_syntax_gcc, c_syntax_clang, splint, uncrustify]), (["o"], [objdump_headers, objdump_disassemble, readelf]), - (["cc", "cpp"], [cpp_syntax_gcc, cpp_syntax_clang, bcpp, uncrustify]), + (["cc", "cpp", "hpp"], [cpp_syntax_gcc, cpp_syntax_clang, bcpp, + uncrustify]), (["pdf"], [pdf2txt]), (["html"], [html_syntax, tidy, html2text]), (["php"], [php5_syntax]),