mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
feat: add c3 (#7891)
This commit is contained in:
parent
71d2fd1bd4
commit
c59004f1e0
6 changed files with 530 additions and 0 deletions
35
runtime/queries/c3/folds.scm
Normal file
35
runtime/queries/c3/folds.scm
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
[
|
||||
; Top-level declarations
|
||||
(bitstruct_declaration)
|
||||
(enum_declaration)
|
||||
(faultdef_declaration)
|
||||
(func_definition)
|
||||
(import_declaration)+
|
||||
(interface_declaration)
|
||||
(macro_declaration)
|
||||
(struct_declaration)
|
||||
; Statements
|
||||
(asm_block_stmt)
|
||||
(case_stmt)
|
||||
(defer_stmt)
|
||||
(do_stmt)
|
||||
(for_stmt)
|
||||
(foreach_stmt)
|
||||
(if_stmt)
|
||||
(switch_stmt)
|
||||
(while_stmt)
|
||||
(ct_for_stmt)
|
||||
(ct_foreach_stmt)
|
||||
(ct_switch_stmt)
|
||||
(ct_case_stmt)
|
||||
(ct_if_stmt)
|
||||
(ct_else_stmt)
|
||||
; Comments
|
||||
(block_comment)
|
||||
(doc_comment)
|
||||
; Initializer list
|
||||
(initializer_list)
|
||||
] @fold
|
||||
|
||||
(compound_stmt
|
||||
(compound_stmt) @fold)
|
||||
Loading…
Add table
Add a link
Reference in a new issue