feat!: drop modules, general refactor and cleanup

This commit is contained in:
Christian Clason 2023-06-12 09:54:30 -06:00
parent c13e28f894
commit 2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions

View file

@ -0,0 +1,60 @@
[
"enum"
"extern"
"grammar"
"match"
"type"
"pub"
] @keyword
[
"match"
"else"
] @conditional
[
"+"
"*"
"?"
; TODO: inaccessible node
; =>
"=>@L"
"=>@R"
] @operator
(grammar_type_params
["<" ">"] @punctuation.bracket)
(symbol
["<" ">"] @punctuation.bracket)
(binding_symbol
["<" ">"] @punctuation.bracket)
(binding_symbol
name: (identifier) @parameter)
(bare_symbol
(macro
((macro_id) @type.definition)))
(bare_symbol
(identifier) @type.definition)
(nonterminal_name
(macro_id) @type.definition)
(nonterminal_name
(identifier) @type.definition)
(nonterminal
(type_ref) @type.builtin)
["(" ")" "[" "]"] @punctuation.bracket
[";" ":"] @punctuation.delimiter
(lifetime (identifier) @storageclass)
(string_literal) @string
(regex_literal) @string

View file

@ -0,0 +1,11 @@
([
(normal_action)
(failible_action)
] @injection.content
(#set! injection.language "rust"))
((use) @injection.content (#set! injection.language "rust"))
((regex_literal) @injection.content
(#set! injection.language "regex")
(#offset! @injection.content 0 2 0 -1))

View file

@ -0,0 +1,5 @@
(nonterminal_name
(macro_id) @definition.function)
(nonterminal_name
(identifier) @definition.function)