aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Queitsch <matthias.queitsch@mailbox.org>2023-07-28 18:27:02 +0200
committerChristian Clason <c.clason@uni-graz.at>2023-07-28 18:41:16 +0200
commitdb0ccd920b3cf7e96a0a9b43aac0f367decd231a (patch)
treed3da8fc21950bb7c969a2b7e4aab398e2003bc56
parentUpdate parsers: c, cuda, fortran, haskell, heex, luap, ocamllex, php, prql, p... (diff)
downloadnvim-treesitter-db0ccd920b3cf7e96a0a9b43aac0f367decd231a.tar
nvim-treesitter-db0ccd920b3cf7e96a0a9b43aac0f367decd231a.tar.gz
nvim-treesitter-db0ccd920b3cf7e96a0a9b43aac0f367decd231a.tar.bz2
nvim-treesitter-db0ccd920b3cf7e96a0a9b43aac0f367decd231a.tar.lz
nvim-treesitter-db0ccd920b3cf7e96a0a9b43aac0f367decd231a.tar.xz
nvim-treesitter-db0ccd920b3cf7e96a0a9b43aac0f367decd231a.tar.zst
nvim-treesitter-db0ccd920b3cf7e96a0a9b43aac0f367decd231a.zip
feat(prql): change `func` to `let` for prql 0.9.x
-rw-r--r--lockfile.json2
-rw-r--r--queries/prql/highlights.scm7
2 files changed, 3 insertions, 6 deletions
diff --git a/lockfile.json b/lockfile.json
index 66548f9a4..fb88906a8 100644
--- a/lockfile.json
+++ b/lockfile.json
@@ -402,7 +402,7 @@
"revision": "42d82fa18f8afe59b5fc0b16c207ee4f84cb185f"
},
"prql": {
- "revision": "b0b7cf06174e65e041d854b843e31f65e47d1fc7"
+ "revision": "09e158cd3650581c0af4c49c2e5b10c4834c8646"
},
"pug": {
"revision": "a7ff31a38908df9b9f34828d21d6ca5e12413e18"
diff --git a/queries/prql/highlights.scm b/queries/prql/highlights.scm
index 09bf7066b..92f74f089 100644
--- a/queries/prql/highlights.scm
+++ b/queries/prql/highlights.scm
@@ -35,12 +35,8 @@
alias: (identifier) @field
-
-
(comment) @comment @spell
-(keyword_func) @keyword.function
-
(function_call
(identifier) @function.call)
@@ -59,6 +55,7 @@ alias: (identifier) @field
"&&"
"||"
"//"
+ "~="
(bang)
] @operator
@@ -138,7 +135,7 @@ alias: (identifier) @field
] @keyword.operator
(function_definition
- (keyword_func)
+ (keyword_let)
name: (identifier) @function)
(parameter