feat: add c3 (#7891)

This commit is contained in:
Christian Buttner 2025-05-28 23:04:10 +02:00 committed by GitHub
parent 71d2fd1bd4
commit c59004f1e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 530 additions and 0 deletions

View 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)