feat(snl): add parser and queries

This commit is contained in:
Minijackson 2025-09-11 15:27:19 +02:00 committed by Christian Clason
parent 6ac9f2e512
commit 53819acac2
7 changed files with 520 additions and 0 deletions

View 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