feat!: drop modules, general refactor and cleanup

This commit is contained in:
Christian Clason 2023-06-12 09:54:30 -06:00
parent 310f0925ec
commit 692b051b09
1247 changed files with 6096 additions and 9074 deletions

View file

@ -0,0 +1,9 @@
[
(config)
(menuconfig)
(choice)
(comment_entry)
(menu)
(if)
(help_text)
] @fold

View file

@ -0,0 +1,105 @@
"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
[
(string)
(macro_content)
(text)
] @string
(config
name: (name
(symbol) @constant))
(menuconfig
name: (name
(symbol) @constant))
(choice
name: (name
(symbol) @constant))
((symbol) @constant
(#lua-match? @constant "[A-Z0-9]+"))
(mainmenu
name: (string) @markup.heading)
(comment_entry
name: (string) @markup.heading)
(menu
name: (string) @markup.heading)
(source
(string) @string.special.url)
(comment) @comment @spell

View file

@ -0,0 +1,12 @@
(help_text
(text) @indent.auto)
[
(config)
(menuconfig)
(choice)
(comment_entry)
(menu)
(if)
(help_text)
] @indent.begin

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,24 @@
[
(symbol)
(string)
] @local.reference
[
(config)
(menuconfig)
(choice)
(comment_entry)
(menu)
(if)
] @local.scope
(type_definition
(string) @local.definition.var)
(type_definition
(input_prompt
(string) @local.definition.var))
(type_definition_default
(expression
(string) @local.definition.var))