mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-07 04:47:45 +03:00
Replace MATLAB grammar (#7388)
This commit is contained in:
parent
842518ccb7
commit
2c5288dafb
9 changed files with 223 additions and 88 deletions
41
runtime/queries/matlab/context.scm
Normal file
41
runtime/queries/matlab/context.scm
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue