lite-xl/resources/amiga/addons/plugins/language_guide.lua

75 lines
2.4 KiB
Lua

-- mod-version:3
local syntax = require "core.syntax"
syntax.add {
name = "Amigaguide",
files = { "%.guide$" },
patterns = {
{ pattern = { '"', '"', '\\' }, type = "string" },
{ pattern = '@{[a-zA-Z0-9& "\'.]+}', type = "keyword" },
{ pattern = "@[$:A-Za-z]*", type = "keyword2" },
},
symbols = {
["@$VER:"] = "keyword2",
["@(C)"] = "keyword2",
["@AUTHOR"] = "keyword2",
["@DATABASE"] = "keyword2",
["@DNODE"] = "keyword2",
["@FONT"] = "keyword2",
["@HEIGHT"] = "keyword2",
["@HELP"] = "keyword2",
["@INDEX"] = "keyword2",
["@MACRO"] = "keyword2",
["@MASTER"] = "keyword2",
["@NODE"] = "keyword2",
["@ONCLOSE"] = "keyword2",
["@ONOPEN"] = "keyword2",
["@REM"] = "keyword2",
["@REMARK"] = "keyword2",
["@SMARTWRAP"] = "keyword2",
["@TAB"] = "keyword2",
["@WIDTH"] = "keyword2",
["@WORDWRAP"] = "keyword2",
["@ENDNODE"] = "keyword2",
["@FONT"] = "keyword2",
["@HELP"] = "keyword2",
["@INDEX"] = "keyword2",
["@KEYWORDS"] = "keyword2",
["@NEXT"] = "keyword2",
["@ONCLOSE"] = "keyword2",
["@ONOPEN"] = "keyword2",
["@PREV"] = "keyword2",
["@SMARTWRAP"] = "keyword2",
["@TAB"] = "keyword2",
["@TITLE"] = "keyword2",
["@TOC"] = "keyword2",
["@WORDWRAP"] = "keyword2",
["@{AMIGAGUIDE}"] = "keyword",
["@{APEN}"] = "keyword",
["@{B}"] = "keyword",
["@{BG}"] = "keyword",
["@{BODY}"] = "keyword",
["@{BPEN}"] = "keyword",
["@{CLEARTABS}"] = "keyword",
["@{CODE}"] = "keyword",
["@{FG}"] = "keyword",
["@{I}"] = "keyword",
["@{JCENTER}"] = "keyword",
["@{JLEFT}"] = "keyword",
["@{JRIGHT}"] = "keyword",
["@{LINDENT}"] = "keyword",
["@{LINE}"] = "keyword",
["@{PAR}"] = "keyword",
["@{PARD}"] = "keyword",
["@{PARI}"] = "keyword",
["@{PLAIN}"] = "keyword",
["@{SETTABS}"] = "keyword",
["@{TAB}"] = "keyword",
["@{U}"] = "keyword",
["@{UB}"] = "keyword",
["@{UI}"] = "keyword",
["@{UU}"] = "keyword"
}
}