From b786c3fa606260e8405120089227fa4d5a5189b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Henrique=20Guard=C3=A3o=20Gandarez?= <782854+gandarez@users.noreply.github.com> Date: Fri, 18 Aug 2023 10:02:13 -0300 Subject: [PATCH] Add .tpp as a c++ lexer file extension (#817) --- lexers/cpp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lexers/cpp.go b/lexers/cpp.go index e3c289640..322481df9 100644 --- a/lexers/cpp.go +++ b/lexers/cpp.go @@ -18,7 +18,7 @@ var CPP = Register(MustNewXMLLexer( &Config{ Name: "C++", Aliases: []string{"cpp", "c++"}, - Filenames: []string{"*.cpp", "*.hpp", "*.c++", "*.h++", "*.cc", "*.hh", "*.cxx", "*.hxx", "*.C", "*.H", "*.cp", "*.CPP", "*.cppm", "*.ixx"}, + Filenames: []string{"*.cpp", "*.hpp", "*.c++", "*.h++", "*.cc", "*.hh", "*.cxx", "*.hxx", "*.C", "*.H", "*.cp", "*.CPP", "*.cppm", "*.ixx", "*.tpp"}, MimeTypes: []string{"text/x-c++hdr", "text/x-c++src"}, Priority: 0.1, EnsureNL: true,