Vendored from upstream, pinned by commit (see debian/extra/README.source): - gitstatus, gitopen, fontconfig, open_ext, select_colorscheme, smoothcaret, nerdicons (font mapping patched to DATADIR, Ships the Symbols Nerd Font Mono TTF, SIL OFL 1.1) - lite-xl-lsp (complete LSP client; idle until a language server is configured) plus the lite-xl-widgets library it requires - 104 language syntax plugins (none duplicate the nine bundled in core) settings GUI left out upstream is broken: it requires a libraries.widget.fonts widget that does not exist in lite-xl-widgets at any revision. Co-developed-with: ZCode (Z.ai)
70 lines
2.1 KiB
Lua
70 lines
2.1 KiB
Lua
-- mod-version:3
|
|
local syntax = require "core.syntax"
|
|
|
|
syntax.add {
|
|
name = "Tcl",
|
|
files = { "%.tcl$" },
|
|
comment = "#",
|
|
patterns = {
|
|
{ pattern = "#.-\n", type = "comment" },
|
|
{ pattern = { '"', '"', '\\' }, type = "string" },
|
|
{ pattern = "0x%x+", type = "number" },
|
|
{ pattern = "%d+[%d%.eE]*f?", type = "number" },
|
|
{ pattern = "%.?%d+f?", type = "number" },
|
|
{ pattern = "%$[%a_][%w_]*", type = "literal" },
|
|
{ pattern = "[%+%-=/%*%^%%<>!~|&]", type = "operator" },
|
|
{ pattern = "::[%a_][%w_]*", type = "function" },
|
|
{ pattern = "[%a_][%w_]*%f[:]", type = "function" },
|
|
{ pattern = "[%a_][%w_]*", type = "symbol" },
|
|
},
|
|
symbols = {
|
|
["set"] = "keyword",
|
|
["unset"] = "keyword",
|
|
["rename"] = "keyword",
|
|
["upvar"] = "keyword",
|
|
["incr"] = "keyword",
|
|
["source"] = "keyword",
|
|
["expr"] = "keyword",
|
|
["gets"] = "keyword",
|
|
["puts"] = "keyword",
|
|
["package"] = "keyword",
|
|
["list"] = "keyword",
|
|
["dict"] = "keyword",
|
|
["split"] = "join",
|
|
["concat"] = "join",
|
|
["lappend"] = "keyword",
|
|
["lset"] = "keyword",
|
|
["lassign"] = "keyword",
|
|
["lindex"] = "keyword",
|
|
["llength"] = "keyword",
|
|
["lsearch"] = "keyword",
|
|
["lrange"] = "keyword",
|
|
["linsert"] = "keyword",
|
|
["lreplace"] = "keyword",
|
|
["lrepeat"] = "keyword",
|
|
["lsort"] = "keyword",
|
|
["lreverse"] = "keyword",
|
|
["array"] = "keyword",
|
|
["concat"] = "keyword",
|
|
["regexp"] = "keyword",
|
|
["for"] = "keyword",
|
|
["foreach"] = "keyword",
|
|
["while"] = "keyword",
|
|
["case"] = "keyword",
|
|
["proc"] = "keyword",
|
|
["if"] = "keyword",
|
|
["else"] = "keyword",
|
|
["elseif"] = "keyword",
|
|
["break"] = "keyword",
|
|
["continue"] = "keyword",
|
|
["return"] = "keyword",
|
|
["eval"] = "keyword",
|
|
["try"] = "keyword2",
|
|
["on"] = "keyword2",
|
|
["finally"] = "keyword2",
|
|
["throw"] = "keyword2",
|
|
["error"] = "keyword2",
|
|
},
|
|
}
|
|
|