chore: apply code review suggestions

This commit is contained in:
Matouš Dzivjak 2025-07-12 15:02:32 +02:00
parent 5ca72f9b30
commit ffc90cb037
No known key found for this signature in database
3 changed files with 21 additions and 12 deletions

View file

@ -6,7 +6,8 @@
field: (identifier) @function.method))
((type_identifier) @type.builtin
(#match? @type.builtin "^(string|int|map|uint|list|timestamp|bool|duration|double|ipaddress)$"))
(#any-of? @type.builtin
"string" "int" "map" "uint" "list" "timestamp" "bool" "duration" "double" "ipaddress"))
(condition_declaration
name: (identifier) @function)
@ -14,6 +15,17 @@
(version) @number
[
"("
")"
"["
"]"
] @punctuation.bracket
[
"+"
"-"
"|"
"^"
"*"
"/"
"%"
@ -21,25 +33,18 @@
"<<"
"&"
"&^"
] @operator
[
"+"
"-"
"|"
"^"
] @operator
] @keyword.operator
[
"or"
"and"
"but not"
] @operator
] @keyword.operator
[
"model"
"module"
"schema"
"type"
"relations"
"define"
"from"
@ -47,4 +52,6 @@
"condition" @keyword.function
"type" @keyword.operator
(comment) @comment

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))