103 lines
1.1 KiB
Scheme
103 lines
1.1 KiB
Scheme
"source" @keyword.import
|
|
|
|
[
|
|
"mainmenu"
|
|
"config"
|
|
"menuconfig"
|
|
"choice"
|
|
"endchoice"
|
|
"comment"
|
|
"menu"
|
|
"endmenu"
|
|
"prompt"
|
|
"default"
|
|
"range"
|
|
"help"
|
|
(optional)
|
|
(modules)
|
|
] @keyword
|
|
|
|
[
|
|
"if"
|
|
"endif"
|
|
"depends on"
|
|
"select"
|
|
"imply"
|
|
"visible if"
|
|
] @keyword.conditional
|
|
|
|
[
|
|
"def_bool"
|
|
"def_tristate"
|
|
] @keyword.function
|
|
|
|
[
|
|
"||"
|
|
"&&"
|
|
"="
|
|
"!="
|
|
"<"
|
|
">"
|
|
"<="
|
|
">="
|
|
"!"
|
|
":="
|
|
"+="
|
|
"?="
|
|
] @operator
|
|
|
|
[
|
|
"bool"
|
|
"tristate"
|
|
"int"
|
|
"hex"
|
|
"string"
|
|
] @type.builtin
|
|
|
|
[
|
|
"("
|
|
")"
|
|
] @punctuation.bracket
|
|
|
|
"," @punctuation.delimiter
|
|
|
|
(macro_variable
|
|
[
|
|
"$("
|
|
")"
|
|
] @punctuation.special)
|
|
|
|
(symbol) @variable
|
|
|
|
[
|
|
(prompt)
|
|
(macro_content)
|
|
(text)
|
|
] @string
|
|
|
|
(config
|
|
name: (symbol) @constant)
|
|
|
|
(menuconfig
|
|
name: (symbol) @constant)
|
|
|
|
(choice
|
|
name: (symbol) @constant)
|
|
|
|
((symbol) @constant
|
|
(#lua-match? @constant "[A-Z0-9]+"))
|
|
|
|
(mainmenu
|
|
name: (prompt) @markup.heading)
|
|
|
|
(comment_entry
|
|
name: (prompt) @markup.heading)
|
|
|
|
(menu
|
|
name: (prompt) @markup.heading)
|
|
|
|
(source
|
|
(prompt) @string.special.url)
|
|
|
|
(comment) @comment @spell
|