mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat: Add more bash queries
Add missing fold queries Add "function" to keywords highlights
This commit is contained in:
parent
35dec1ceeb
commit
98fba24acf
2 changed files with 8 additions and 0 deletions
7
queries/bash/folds.scm
Normal file
7
queries/bash/folds.scm
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[
|
||||
(function_definition)
|
||||
(if_statement)
|
||||
(case_statement)
|
||||
(for_statement)
|
||||
(while_statement)
|
||||
] @fold
|
||||
|
|
@ -66,6 +66,7 @@
|
|||
"local"
|
||||
"readonly"
|
||||
"unset"
|
||||
"function"
|
||||
] @keyword
|
||||
|
||||
(special_variable_name) @constant
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue