aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/matlab/indents.scm
diff options
context:
space:
mode:
authorÁlan Crístoffer2023-06-22 22:19:40 +0000
committerGitHub2023-06-22 22:19:40 +0000
commit2c5288dafb88ae2a12d3589b79a525932f48b6b3 (patch)
treef53c61925d285c0b48d15bd7ef00393a2e346484 /runtime/queries/matlab/indents.scm
parent842518ccb7e76e2c569db72ff79968ca80882bc0 (diff)
Replace MATLAB grammar (#7388)
Diffstat (limited to 'runtime/queries/matlab/indents.scm')
-rw-r--r--runtime/queries/matlab/indents.scm23
1 files changed, 23 insertions, 0 deletions
diff --git a/runtime/queries/matlab/indents.scm b/runtime/queries/matlab/indents.scm
new file mode 100644
index 00000000..b2a8e55d
--- /dev/null
+++ b/runtime/queries/matlab/indents.scm
@@ -0,0 +1,23 @@
+[
+ (if_statement)
+ (for_statement)
+ (while_statement)
+ (switch_statement)
+ (try_statement)
+ (function_definition)
+ (class_definition)
+ (enumeration)
+ (events)
+ (methods)
+ (properties)
+] @indent
+
+[
+ (elseif_clause)
+ (else_clause)
+ (case_clause)
+ (otherwise_clause)
+ (catch_clause)
+] @indent @extend
+
+[ "end" ] @outdent