diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-22 12:23:25 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-22 12:23:25 +0100 |
| commit | 59b30c1305ff6bcb63c673898893edcda19e27e4 (patch) | |
| tree | b02b357f3f7a70f916284663ae94f57d64ac1d92 /queries/odin.scm | |
| parent | 8375f459638f942d51948d466d9365eaa0c2a500 (diff) | |
| download | crep-59b30c1305ff6bcb63c673898893edcda19e27e4.tar.gz | |
Add Odin grammar
Diffstat (limited to 'queries/odin.scm')
| -rw-r--r-- | queries/odin.scm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/queries/odin.scm b/queries/odin.scm new file mode 100644 index 0000000..47e3bab --- /dev/null +++ b/queries/odin.scm @@ -0,0 +1,25 @@ +(procedure_declaration + (identifier) @fname + (procedure + "proc" @ftype + (parameters) @fparams)) + +(const_declaration + (identifier) @fname + (procedure + "proc" @ftype + (parameters) @fparams)) + +(var_declaration + (identifier) @fname + (procedure + "proc" @ftype + (parameters) @fparams)) + +(struct_declaration + (identifier) @fname + "struct" @ftype) + +(enum_declaration + (identifier) @fname + "enum" @ftype) |
