diff options
author | Álan Crístoffer | 2023-06-22 22:19:40 +0000 |
---|---|---|
committer | GitHub | 2023-06-22 22:19:40 +0000 |
commit | 2c5288dafb88ae2a12d3589b79a525932f48b6b3 (patch) | |
tree | f53c61925d285c0b48d15bd7ef00393a2e346484 /runtime/queries/matlab/context.scm | |
parent | 842518ccb7e76e2c569db72ff79968ca80882bc0 (diff) |
Replace MATLAB grammar (#7388)
Diffstat (limited to 'runtime/queries/matlab/context.scm')
-rw-r--r-- | runtime/queries/matlab/context.scm | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/runtime/queries/matlab/context.scm b/runtime/queries/matlab/context.scm new file mode 100644 index 00000000..725c10ca --- /dev/null +++ b/runtime/queries/matlab/context.scm @@ -0,0 +1,41 @@ +(function_definition + (block (_) @context.end) +) @context + +(while_statement + (block (_) @context.end) +) @context + +(for_statement + (block (_) @context.end) +) @context + +(if_statement + (block (_) @context.end) +) @context + +(elseif_clause + (block (_) @context.end) +) @context + +(else_clause + (block (_) @context.end) +) @context + +(switch_statement) @context + +(case_clause + (block (_) @context.end) +) @context + +(otherwise_clause + (block (_) @context.end) +) @context + +(try_statement + "try" + (block (_) @context.end) @context + "end") +(catch_clause + "catch" + (block (_) @context.end) @context) |