Update tree-sitter-sql and improve highlight queries (#5683)
commit482cc22fecc109773882d3e0fd6251c33862e89e
authorLeoniePhiline <22329650+LeoniePhiline@users.noreply.github.com>
dateSat 28 Jan 2023, 21:15 (4 years ago)
parent2c6bf6f
languages.toml+1−1
@@ -1434,7 +1434,7 @@ injection-regex = "sql"
14341434
14351435[[grammar]]
14361436name = "sql"
1437−source = { git = "https://github.com/DerekStride/tree-sitter-sql", rev = "2743c7b5e710e6854d4e8c14c302548b436e2a1f" }
1437+source = { git = "https://github.com/DerekStride/tree-sitter-sql", rev = "4fe05b2d81565ddb689d2f415e07afdacc515c52" }
14381438
14391439[[language]]
14401440name = "gdscript"
runtime/queries/sql/highlights.scm+11−17
@@ -42,21 +42,13 @@
4242 "."
4343] @punctuation.delimiter
4444
45−[
46− "*"
47− "+"
48− "-"
49− "/"
50− "%"
51− "^"
52− "||"
53− "="
54− "<"
55− "<="
56− "!="
57− ">="
58− ">"
59−] @operator
45+(binary_expression
46+ operator: _ @operator)
47+
48+(unary_expression
49+ operator: _ @operator)
50+
51+(all_fields) @special
6052
6153[
6254 (keyword_null)
@@ -64,11 +56,11 @@
6456 (keyword_false)
6557] @constant.builtin
6658
67−(literal) @string
68−
6959((literal) @constant.numeric
7060 (#match? @constant.numeric "^(-?\d*\.?\d*)$"))
7161
62+(literal) @string
63+
7264[
7365 (keyword_select)
7466 (keyword_delete)
@@ -146,6 +138,8 @@
146138 (keyword_commit)
147139 (keyword_rollback)
148140 (keyword_transaction)
141+ (keyword_group_concat)
142+ (keyword_separator)
149143] @keyword
150144
151145[