Provide specific syntax plugin for C++

We have only the problem to attribute the .h either to C or C++ but
we don't have currently any way to discriminate them.
This commit is contained in:
Francesco Abbate
2021-06-18 12:00:24 +02:00
parent d45ec645d3
commit cfd3bebfcc
2 changed files with 70 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" },