aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--languages.toml2
-rw-r--r--runtime/queries/sql/highlights.scm28
2 files changed, 12 insertions, 18 deletions
diff --git a/languages.toml b/languages.toml
index 9c2fba86..495acfec 100644
--- a/languages.toml
+++ b/languages.toml
@@ -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"
diff --git a/runtime/queries/sql/highlights.scm b/runtime/queries/sql/highlights.scm
index ece8be33..aad5ed31 100644
--- a/runtime/queries/sql/highlights.scm
+++ b/runtime/queries/sql/highlights.scm
@@ -42,21 +42,13 @@
"."
] @punctuation.delimiter
-[
- "*"
- "+"
- "-"
- "/"
- "%"
- "^"
- "||"
- "="
- "<"
- "<="
- "!="
- ">="
- ">"
-] @operator
+(binary_expression
+ operator: _ @operator)
+
+(unary_expression
+ operator: _ @operator)
+
+(all_fields) @special
[
(keyword_null)
@@ -64,11 +56,11 @@
(keyword_false)
] @constant.builtin
-(literal) @string
-
((literal) @constant.numeric
(#match? @constant.numeric "^(-?\d*\.?\d*)$"))
+(literal) @string
+
[
(keyword_select)
(keyword_delete)
@@ -146,6 +138,8 @@
(keyword_commit)
(keyword_rollback)
(keyword_transaction)
+ (keyword_group_concat)
+ (keyword_separator)
] @keyword
[