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:
Francesco Abbate
2021-07-19 08:18:38 +02:00
parent d3f1a3a5b2
commit 7605b626e8
2 changed files with 123 additions and 1 deletions
+1 -1
View File
@@ -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" },