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)
71 lines
2.0 KiB
Lua
71 lines
2.0 KiB
Lua
--mod-version:3
|
|
local syntax = require 'core.syntax'
|
|
|
|
local label, sublabel = "function", "keyword2"
|
|
|
|
syntax.add {
|
|
name = "Uxntal",
|
|
files = { "%.tal$" },
|
|
block_comment = { '(', ')' },
|
|
patterns = {
|
|
{ pattern = {'%(', '%)'}, type = "comment" },
|
|
{ pattern = "@%S*%s+%f[[]", type = label },
|
|
{ pattern = "@%S+", type = "string" },
|
|
{ pattern = "%u+()[2kr]*", type = { "symbol", "keyword" } },
|
|
{ pattern = "%%%S+", type = "keyword" },
|
|
{ pattern = "&%S+", type = sublabel },
|
|
{ pattern = "\"%S+", type = "string" },
|
|
{ pattern = "%.%S+()/%S*", type = { label, sublabel } },
|
|
{ pattern = "%.%S+", type = label },
|
|
{ pattern = "|%x+", type = "string" },
|
|
{ pattern = "[.,;_=-]%S+", type = sublabel },
|
|
{ pattern = "%$%d+", type = "number" },
|
|
{ pattern = "#?%x%x%x%x%f[%X]", type = "number" },
|
|
{ pattern = "#?%x%x%f[%X]", type = "number" },
|
|
{ pattern = "[!?]()[^%[%]{}%s]+", type = { "operator", "function" } },
|
|
{ pattern = "[^%[%]{}%s]+", type = "function" },
|
|
},
|
|
symbols = {
|
|
-- no mode keywords
|
|
["JCI"] = "keyword",
|
|
["JMI"] = "keyword",
|
|
["JSI"] = "keyword",
|
|
["BRK"] = "keyword",
|
|
|
|
-- lit only has 4 modes
|
|
["LIT"] = "keyword",
|
|
|
|
-- the rest
|
|
["EQU"] = "keyword",
|
|
["LDZ"] = "keyword",
|
|
["ADD"] = "keyword",
|
|
["INC"] = "keyword",
|
|
["NEQ"] = "keyword",
|
|
["STZ"] = "keyword",
|
|
["SUB"] = "keyword",
|
|
["POP"] = "keyword",
|
|
["GTH"] = "keyword",
|
|
["LDR"] = "keyword",
|
|
["MUL"] = "keyword",
|
|
["NIP"] = "keyword",
|
|
["LTH"] = "keyword",
|
|
["STR"] = "keyword",
|
|
["DIV"] = "keyword",
|
|
["SWP"] = "keyword",
|
|
["JMP"] = "keyword",
|
|
["LDA"] = "keyword",
|
|
["AND"] = "keyword",
|
|
["ROT"] = "keyword",
|
|
["JCN"] = "keyword",
|
|
["STA"] = "keyword",
|
|
["ORA"] = "keyword",
|
|
["DUP"] = "keyword",
|
|
["JSR"] = "keyword",
|
|
["DEI"] = "keyword",
|
|
["EOR"] = "keyword",
|
|
["OVR"] = "keyword",
|
|
["STH"] = "keyword",
|
|
["DEO"] = "keyword",
|
|
["SFT"] = "keyword",
|
|
}}
|