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:
@@ -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