aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_cmake.lua
blob: 34b4d0c6fc6663f12c60fdb1bd634f7d877d72b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- mod-version:2 -- lite-xl 2.0
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 = {},
}