mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 18:30:06 -04:00
feat(roc)!: bump parser and queries
Adapt to https://github.com/faldor20/tree-sitter-roc/pull/30 Also synchronize queries with upstream and add indents
This commit is contained in:
parent
f06adcf572
commit
afe977dadd
5 changed files with 107 additions and 11 deletions
|
|
@ -1,3 +1,28 @@
|
|||
;injection from function calls
|
||||
(function_call_pnc_expr
|
||||
(variable_expr
|
||||
(identifier) @injection.language)
|
||||
(const
|
||||
[
|
||||
(multiline_string)
|
||||
(string)
|
||||
] @injection.content)
|
||||
(#any-eq? @injection.language
|
||||
"json" "toml" "yaml" "xml" "sql" "lua" "js" "html" "css" "http" "jq" "latex" "md" "nix" "regex"))
|
||||
|
||||
;injection from piping function calls
|
||||
(bin_op_expr
|
||||
part: (const
|
||||
[
|
||||
(multiline_string)
|
||||
(string)
|
||||
] @injection.content)
|
||||
part: (operator)
|
||||
part: (variable_expr
|
||||
(identifier) @injection.language)
|
||||
(#any-eq? @injection.language
|
||||
"json" "toml" "yaml" "xml" "sql" "lua" "js" "html" "css" "http" "jq" "latex" "md" "nix" "regex"))
|
||||
|
||||
([
|
||||
(line_comment)
|
||||
(doc_comment)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue