Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add .tpp as a c++ lexer file extension
  • Loading branch information
gandarez committed Aug 18, 2023
commit d0458f7a11e45618059a7a74b2887ffde662fa39
2 changes: 1 addition & 1 deletion lexers/cpp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down