mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00:02 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
30
runtime/queries/roc/injections.scm
Normal file
30
runtime/queries/roc/injections.scm
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
;injection from function calls
|
||||
(function_call_pnc_expr
|
||||
(variable_expr
|
||||
(identifier) @injection.language)
|
||||
(const
|
||||
[
|
||||
(multiline_string)
|
||||
(string)
|
||||
] @injection.content)
|
||||
(#any-of? @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-of? @injection.language
|
||||
"json" "toml" "yaml" "xml" "sql" "lua" "js" "html" "css" "http" "jq" "latex" "md" "nix" "regex"))
|
||||
|
||||
([
|
||||
(line_comment)
|
||||
(doc_comment)
|
||||
] @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue