bomberpac/vendor/lite-plugins/plugins/language_cmake.lua

16 lines
517 B
Lua
Raw Permalink Normal View History

2021-02-07 21:56:19 +00:00
local syntax = require "core.syntax"
syntax.add {
files = { "%.cmake$", "CMakeLists.txt$" },
comment = "//",
patterns = {
{ pattern = { "#", "[^\\]\n" }, type = "comment" },
{ pattern = { '"', '"', '\\' }, type = "string" },
{ pattern = { "'", "'", '\\' }, type = "string" },
{ pattern = "[%a_][%w_]*%f[(]", type = "function" },
{ pattern = "[%a_][%w_]*", type = "normal" },
{ pattern = "%${[%a_][%w_]*%}", type = "operator" },
},
symbols = {},
}