Bundle curated community plugins (2.1.8-4)
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)
This commit is contained in:
+90
@@ -0,0 +1,90 @@
|
||||
-- mod-version:3
|
||||
local syntax = require "core.syntax"
|
||||
|
||||
syntax.add {
|
||||
name = "Blueprint",
|
||||
files = { "%.blp$", },
|
||||
comment = "//",
|
||||
block_comment = {"/*", "*/"},
|
||||
patterns = {
|
||||
|
||||
-- Comments
|
||||
{ pattern = "//.*", type = "comment" },
|
||||
{ pattern = { "/%*", "%*/" }, type = "comment" },
|
||||
|
||||
-- Strings
|
||||
{ pattern = { "'", "'", "\\"}, type = "string" },
|
||||
{ pattern = { '"', '"', "\\" }, type = "string" },
|
||||
|
||||
-- Numbers
|
||||
{ pattern = "%.?%d+", type = "number" },
|
||||
|
||||
-- Child type
|
||||
{ pattern = "%[.*%]", type = "literal" },
|
||||
|
||||
-- Operators
|
||||
{ pattern = "%$", type = "operator" },
|
||||
{ pattern = "=>%s*%$().*()%(%)", type = { "operator", "function", "normal" } },
|
||||
|
||||
-- Properties
|
||||
{ pattern = "[%w-_]+()%s*:", type = { "keyword", "normal" } },
|
||||
|
||||
-- Classes
|
||||
{ pattern = "[%w_-%.]+%s*(){", type = { "keyword2", "normal"} },
|
||||
{ pattern = "[%w_-%.]+%s*()[%w_-]+%s*{", type = { "keyword2", "normal"} },
|
||||
|
||||
-- Symbols
|
||||
{ pattern = "[%w-_]+", type = "symbol" },
|
||||
|
||||
},
|
||||
symbols = {
|
||||
["true"] = "literal",
|
||||
["false"] = "literal",
|
||||
["null"] = "literal",
|
||||
|
||||
-- Import statements
|
||||
["using"] = "keyword",
|
||||
|
||||
-- Keywords
|
||||
["after"] = "keyword",
|
||||
["bidirectional"] = "keyword",
|
||||
["bind-property"] = "keyword",
|
||||
["bind"] = "keyword",
|
||||
["default"] = "keyword",
|
||||
["destructive"] = "keyword",
|
||||
["disabled"] = "keyword",
|
||||
["inverted"] = "keyword",
|
||||
["no-sync-create"] = "keyword",
|
||||
["suggested"] = "keyword",
|
||||
["swapped"] = "keyword",
|
||||
["sync-create"] = "keyword",
|
||||
["template"] = "keyword",
|
||||
|
||||
-- Menus
|
||||
["menu"] = "keyword",
|
||||
["submenu"] = "keyword",
|
||||
["section"] = "keyword",
|
||||
|
||||
-- Nested blocks
|
||||
["responses"] = "keyword2",
|
||||
["items"] = "keyword2",
|
||||
["mime-types"] = "keyword2",
|
||||
["patterns"] = "keyword2",
|
||||
["suffixes"] = "keyword2",
|
||||
["marks"] = "keyword2",
|
||||
["widgets"] = "keyword2",
|
||||
["strings"] = "keyword2",
|
||||
["styles"] = "keyword2",
|
||||
["accessibility"] = "keyword2",
|
||||
["setters"] = "keyword2",
|
||||
["layout"] = "keyword2",
|
||||
["item"] = "keyword2",
|
||||
["condition"] = "keyword2",
|
||||
["mark"] = "keyword2",
|
||||
|
||||
-- Translated strings
|
||||
["_"] = "operator",
|
||||
["C_"] = "operator",
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user