Update tree-sitter-sql and improve highlight queries (#5683)

pull/5410/head
LeoniePhiline 2 years ago committed by GitHub
parent 2c6bf6fca6
commit 482cc22fec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1434,7 +1434,7 @@ injection-regex = "sql"
[[grammar]] [[grammar]]
name = "sql" 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]] [[language]]
name = "gdscript" name = "gdscript"

@ -42,21 +42,13 @@
"." "."
] @punctuation.delimiter ] @punctuation.delimiter
[ (binary_expression
"*" operator: _ @operator)
"+"
"-" (unary_expression
"/" operator: _ @operator)
"%"
"^" (all_fields) @special
"||"
"="
"<"
"<="
"!="
">="
">"
] @operator
[ [
(keyword_null) (keyword_null)
@ -64,11 +56,11 @@
(keyword_false) (keyword_false)
] @constant.builtin ] @constant.builtin
(literal) @string
((literal) @constant.numeric ((literal) @constant.numeric
(#match? @constant.numeric "^(-?\d*\.?\d*)$")) (#match? @constant.numeric "^(-?\d*\.?\d*)$"))
(literal) @string
[ [
(keyword_select) (keyword_select)
(keyword_delete) (keyword_delete)
@ -146,6 +138,8 @@
(keyword_commit) (keyword_commit)
(keyword_rollback) (keyword_rollback)
(keyword_transaction) (keyword_transaction)
(keyword_group_concat)
(keyword_separator)
] @keyword ] @keyword
[ [

Loading…
Cancel
Save