mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 12:20:02 -04:00
feat: add prql (#4393)
* feat: add prql * highlights(prql): null as constant.builtin * highlights(prql): add missing kwd, update queries * highlights(prql): remove redundant queries * highlights(prql): make `->` a delimiter * highlights(prql): instructions to `@method.call`
This commit is contained in:
parent
9dd1b9c097
commit
0572657d4d
5 changed files with 168 additions and 0 deletions
13
queries/prql/injections.scm
Normal file
13
queries/prql/injections.scm
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
(
|
||||
(s_string) @sql
|
||||
(#offset! @sql 0 2 0 -1)
|
||||
)
|
||||
|
||||
(from_text
|
||||
(keyword_from_text)
|
||||
(keyword_json)
|
||||
(literal) @json
|
||||
(#offset! @json 0 3 0 -3)
|
||||
)
|
||||
|
||||
(comment) @comment
|
||||
Loading…
Add table
Add a link
Reference in a new issue