Skip to content

Commit

Permalink
Update tree-sitter-sql and improve highlight queries (#5683)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoniePhiline authored Jan 28, 2023
1 parent 2c6bf6f commit 482cc22
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
2 changes: 1 addition & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1434,7 +1434,7 @@ injection-regex = "sql"

[[grammar]]
name = "sql"
source = { git = "https://github.com/DerekStride/tree-sitter-sql", rev = "2743c7b5e710e6854d4e8c14c302548b436e2a1f" }
source = { git = "https://github.com/DerekStride/tree-sitter-sql", rev = "4fe05b2d81565ddb689d2f415e07afdacc515c52" }

[[language]]
name = "gdscript"
Expand Down
28 changes: 11 additions & 17 deletions runtime/queries/sql/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -42,33 +42,25 @@
"."
] @punctuation.delimiter

[
"*"
"+"
"-"
"/"
"%"
"^"
"||"
"="
"<"
"<="
"!="
">="
">"
] @operator
(binary_expression
operator: _ @operator)

(unary_expression
operator: _ @operator)

(all_fields) @special

[
(keyword_null)
(keyword_true)
(keyword_false)
] @constant.builtin

(literal) @string

((literal) @constant.numeric
(#match? @constant.numeric "^(-?\d*\.?\d*)$"))

(literal) @string

[
(keyword_select)
(keyword_delete)
Expand Down Expand Up @@ -146,6 +138,8 @@
(keyword_commit)
(keyword_rollback)
(keyword_transaction)
(keyword_group_concat)
(keyword_separator)
] @keyword

[
Expand Down

0 comments on commit 482cc22

Please sign in to comment.