You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
517 B
16 lines
517 B
3 years ago
|
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 = {},
|
||
|
}
|