mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 08:20:05 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
42
runtime/queries/ebnf/highlights.scm
Normal file
42
runtime/queries/ebnf/highlights.scm
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
; Simple tokens ;;;;
|
||||
(terminal) @string
|
||||
|
||||
(special_sequence) @string.special
|
||||
|
||||
(integer) @number
|
||||
|
||||
(comment) @comment @spell
|
||||
|
||||
; Identifiers ;;;;
|
||||
; Allow different highlighting for specific casings
|
||||
((identifier) @type
|
||||
(#lua-match? @type "^%u"))
|
||||
|
||||
((identifier) @string.special.symbol
|
||||
(#lua-match? @string.special.symbol "^%l"))
|
||||
|
||||
((identifier) @constant
|
||||
(#lua-match? @constant "^%u[%u%d_]+$"))
|
||||
|
||||
; Punctuation ;;;;
|
||||
[
|
||||
";"
|
||||
","
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
"|"
|
||||
"*"
|
||||
"-"
|
||||
] @operator
|
||||
|
||||
"=" @keyword.operator
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
2
runtime/queries/ebnf/injections.scm
Normal file
2
runtime/queries/ebnf/injections.scm
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue