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)
53 lines
1.6 KiB
Lua
53 lines
1.6 KiB
Lua
-- mod-version:3
|
|
local syntax = require "core.syntax"
|
|
|
|
syntax.add {
|
|
name = "fe",
|
|
files = "%.fe$",
|
|
comment = ";",
|
|
patterns = {
|
|
{ pattern = ";.*", type = "comment" },
|
|
{ pattern = { '"', '"', '\\' }, type = "string" },
|
|
{ pattern = "0x[%da-fA-F]+", type = "number" },
|
|
{ pattern = "-?%d+[%d%.]*", type = "number" },
|
|
{ pattern = "-?%.?%d+", type = "number" },
|
|
{ pattern = "'", type = "symbol" },
|
|
{ pattern = "=", type = "symbol" },
|
|
{ pattern = "<=?", type = "symbol" },
|
|
{ pattern = "[%+-%*/]", type = "symbol" },
|
|
{ pattern = "%f[^(][^()'%s\"]+", type = "function" },
|
|
{ pattern = "[^()'%s\"]+", type = "symbol" },
|
|
},
|
|
symbols = {
|
|
["let"] = "keyword",
|
|
["if"] = "keyword",
|
|
["fn"] = "keyword",
|
|
["mac"] = "keyword",
|
|
["while"] = "keyword",
|
|
["quote"] = "keyword",
|
|
["'"] = "keyword",
|
|
["and"] = "keyword",
|
|
["or"] = "keyword",
|
|
["do"] = "keyword",
|
|
["cons"] = "keyword",
|
|
["car"] = "keyword",
|
|
["cdr"] = "keyword",
|
|
["setcar"] = "keyword",
|
|
["setcdr"] = "keyword",
|
|
["list"] = "keyword",
|
|
["not"] = "keyword",
|
|
["is"] = "keyword",
|
|
["atom"] = "keyword",
|
|
["print"] = "keyword",
|
|
["<"] = "operator",
|
|
["<="] = "operator",
|
|
["="] = "operator",
|
|
["+"] = "operator",
|
|
["-"] = "operator",
|
|
["*"] = "operator",
|
|
["/"] = "operator",
|
|
["nil"] = "literal",
|
|
["t"] = "literal",
|
|
}
|
|
}
|