Replace MATLAB grammar (#7388)

This commit is contained in:
Álan Crístoffer 2023-06-23 00:19:40 +02:00 committed by GitHub
parent 842518ccb7
commit 2c5288dafb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 223 additions and 88 deletions

View file

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