Add language_cpp plugins
Brought form the 1.16.12 release. It provides support for C++ using multi-part syntax patterns. Take the priority over C language plugins for header files.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
local syntax = require "core.syntax"
|
||||
|
||||
syntax.add {
|
||||
files = { "%.c$", "%.h$", "%.inl$", "%.cpp$", "%.hpp$" },
|
||||
files = { "%.c$", "%.h$", "%.inl$" },
|
||||
comment = "//",
|
||||
patterns = {
|
||||
{ pattern = "//.-\n", type = "comment" },
|
||||
|
||||
Reference in New Issue
Block a user