aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Stride <derek.stride@shopify.com>2022-11-18 09:20:39 -0500
committerGitHub <noreply@github.com>2022-11-18 14:20:39 +0000
commit9705316fff7a16ba6c70c26a6afd77d00a7e8b2e (patch)
tree0d30904e3db0f388628849a37e9a4a8b8d59ce69
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-9705316fff7a16ba6c70c26a6afd77d00a7e8b2e.tar
nvim-treesitter-9705316fff7a16ba6c70c26a6afd77d00a7e8b2e.tar.gz
nvim-treesitter-9705316fff7a16ba6c70c26a6afd77d00a7e8b2e.tar.bz2
nvim-treesitter-9705316fff7a16ba6c70c26a6afd77d00a7e8b2e.tar.lz
nvim-treesitter-9705316fff7a16ba6c70c26a6afd77d00a7e8b2e.tar.xz
nvim-treesitter-9705316fff7a16ba6c70c26a6afd77d00a7e8b2e.tar.zst
nvim-treesitter-9705316fff7a16ba6c70c26a6afd77d00a7e8b2e.zip
sql: update parser and query (#3820)
Add better `term` nodes in the select expression
-rw-r--r--lockfile.json2
-rw-r--r--queries/sql/highlights.scm3
2 files changed, 4 insertions, 1 deletions
diff --git a/lockfile.json b/lockfile.json
index df48b75c1..4b9de02c6 100644
--- a/lockfile.json
+++ b/lockfile.json
@@ -333,7 +333,7 @@
"revision": "05f949d3c1c15e3261473a244d3ce87777374dec"
},
"sql": {
- "revision": "70c50264ae022193adb364ffa7a767d765ed9857"
+ "revision": "56d33747de8dad6cf92356245e8e8ea7a2654947"
},
"supercollider": {
"revision": "90c6d9f777d2b8c4ce497c48b5f270a44bcf3ea0"
diff --git a/queries/sql/highlights.scm b/queries/sql/highlights.scm
index f4db50dd8..c546e040a 100644
--- a/queries/sql/highlights.scm
+++ b/queries/sql/highlights.scm
@@ -24,6 +24,9 @@
table_alias: (identifier) @variable
name: (identifier) @field)
+(term
+ alias: (identifier) @variable)
+
(literal) @string
(comment) @comment
(marginalia) @comment