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 committed 2021-07-19 08:18:38 +02:00
1 parent d3f1a3a5b2
commit 7605b626e8
2 files changed
+123 -1

No files matched your search

+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" },