mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 04:40:08 -04:00
feat(snl): add parser and queries
This commit is contained in:
parent
6ac9f2e512
commit
53819acac2
7 changed files with 520 additions and 0 deletions
21
runtime/queries/snl/folds.scm
Normal file
21
runtime/queries/snl/folds.scm
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
[
|
||||
(for_statement)
|
||||
(if_statement)
|
||||
(while_statement)
|
||||
(funcdef)
|
||||
(structdef)
|
||||
(comment)
|
||||
(preproc_if)
|
||||
(preproc_elif)
|
||||
(preproc_else)
|
||||
(preproc_ifdef)
|
||||
(preproc_function_def)
|
||||
(init_expr)
|
||||
(entry)
|
||||
(state_set)
|
||||
(state)
|
||||
(exit)
|
||||
] @fold
|
||||
|
||||
(initial_defn
|
||||
(preproc_include))+ @fold
|
||||
Loading…
Add table
Add a link
Reference in a new issue