mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 23:10:11 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
60
runtime/queries/lalrpop/highlights.scm
Normal file
60
runtime/queries/lalrpop/highlights.scm
Normal 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
|
||||
11
runtime/queries/lalrpop/injections.scm
Normal file
11
runtime/queries/lalrpop/injections.scm
Normal 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))
|
||||
5
runtime/queries/lalrpop/locals.scm
Normal file
5
runtime/queries/lalrpop/locals.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
(nonterminal_name
|
||||
(macro_id) @definition.function)
|
||||
|
||||
(nonterminal_name
|
||||
(identifier) @definition.function)
|
||||
Loading…
Add table
Add a link
Reference in a new issue