queries: Odin or_break+or_continue keywords, struct indents

from https://github.com/tree-sitter-grammars/tree-sitter-odin/pull/25
pull/13925/head
connnnal 2025-07-08 15:16:31 +01:00 committed by Michael Davis
parent 9447a9cc93
commit 16d06643a4
2 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,7 @@
"case" "case"
"where" "where"
"break" "break"
"or_break"
(fallthrough_statement) (fallthrough_statement)
] @keyword.control.conditional ] @keyword.control.conditional
@ -73,6 +74,7 @@
"for" "for"
"do" "do"
"continue" "continue"
"or_continue"
] @keyword.control.repeat ] @keyword.control.repeat
[ [

View File

@ -6,6 +6,7 @@
(struct) (struct)
(parameters) (parameters)
(tuple_type) (tuple_type)
(struct_type)
(call_expression) (call_expression)
(switch_case) (switch_case)
] @indent ] @indent
@ -21,3 +22,4 @@
(union_declaration "}" @outdent) (union_declaration "}" @outdent)
(struct_declaration "}" @outdent) (struct_declaration "}" @outdent)
(struct "}" @outdent) (struct "}" @outdent)
(struct_type "}" @outdent)