mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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
34
runtime/queries/gomod/highlights.scm
Normal file
34
runtime/queries/gomod/highlights.scm
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[
|
||||
"require"
|
||||
"replace"
|
||||
"go"
|
||||
"toolchain"
|
||||
"exclude"
|
||||
"retract"
|
||||
"module"
|
||||
] @keyword
|
||||
|
||||
"=>" @operator
|
||||
|
||||
(comment) @comment @spell
|
||||
|
||||
(module_path) @string.special.url
|
||||
|
||||
(tool_directive) @keyword.directive
|
||||
|
||||
(tool) @string.special.url
|
||||
|
||||
[
|
||||
(version)
|
||||
(go_version)
|
||||
(toolchain_name)
|
||||
] @string.special
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
|
||||
"," @punctuation.delimiter
|
||||
2
runtime/queries/gomod/injections.scm
Normal file
2
runtime/queries/gomod/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