on master help sign in
Update tree-sitter-sql and improve highlight queries (#5683)
482cc22LeoniePhiline
languages.toml+1−1
@@ -1434,7 +1434,7 @@ injection-regex = "sql"
1434
1434
1435[[grammar]]
1435[[grammar]]
1436name = "sql"
1436name = "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" }
1438
1438
1439[[language]]
1439[[language]]
1440name = "gdscript"
1440name = "gdscript"
runtime/queries/sql/highlights.scm+11−17
@@ -42,21 +42,13 @@
42 "."
42 "."
43] @punctuation.delimiter
43] @punctuation.delimiter
44
44
45−[
45+(binary_expression
46− "*"
46+ operator: _ @operator)
47− "+"
47+
48− "-"
48+(unary_expression
49− "/"
49+ operator: _ @operator)
50− "%"
50+
51− "^"
51+(all_fields) @special
52− "||"
53− "="
54− "<"
55− "<="
56− "!="
57− ">="
58− ">"
59−] @operator
60
52
61[
53[
62 (keyword_null)
54 (keyword_null)
@@ -64,11 +56,11 @@
64 (keyword_false)
56 (keyword_false)
65] @constant.builtin
57] @constant.builtin
66
58
67−(literal) @string
68−
69((literal) @constant.numeric
59((literal) @constant.numeric
70 (#match? @constant.numeric "^(-?\d*\.?\d*)$"))
60 (#match? @constant.numeric "^(-?\d*\.?\d*)$"))
71
61
62+(literal) @string
63+
72[
64[
73 (keyword_select)
65 (keyword_select)
74 (keyword_delete)
66 (keyword_delete)
@@ -146,6 +138,8 @@
146 (keyword_commit)
138 (keyword_commit)
147 (keyword_rollback)
139 (keyword_rollback)
148 (keyword_transaction)
140 (keyword_transaction)
141+ (keyword_group_concat)
142+ (keyword_separator)
149] @keyword
143] @keyword
150
144
151[
145[