Unnamed repository; edit this file 'description' to name the repository.
queries: Odin or_break+or_continue keywords, struct indents
from https://github.com/tree-sitter-grammars/tree-sitter-odin/pull/25
connnnal 8 months ago
parent 9447a9c · commit 16d0664
-rw-r--r--runtime/queries/odin/highlights.scm2
-rw-r--r--runtime/queries/odin/indents.scm2
2 files changed, 4 insertions, 0 deletions
diff --git a/runtime/queries/odin/highlights.scm b/runtime/queries/odin/highlights.scm
index a6020582..03d8b83c 100644
--- a/runtime/queries/odin/highlights.scm
+++ b/runtime/queries/odin/highlights.scm
@@ -57,6 +57,7 @@
"case"
"where"
"break"
+ "or_break"
(fallthrough_statement)
] @keyword.control.conditional
@@ -73,6 +74,7 @@
"for"
"do"
"continue"
+ "or_continue"
] @keyword.control.repeat
[
diff --git a/runtime/queries/odin/indents.scm b/runtime/queries/odin/indents.scm
index f456c1fe..223bab13 100644
--- a/runtime/queries/odin/indents.scm
+++ b/runtime/queries/odin/indents.scm
@@ -6,6 +6,7 @@
(struct)
(parameters)
(tuple_type)
+ (struct_type)
(call_expression)
(switch_case)
] @indent
@@ -21,3 +22,4 @@
(union_declaration "}" @outdent)
(struct_declaration "}" @outdent)
(struct "}" @outdent)
+(struct_type "}" @outdent)