mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04:00
queries/nix: add injections for nim writers (#11837)
This commit is contained in:
parent
4d3612125b
commit
6ec510d58f
@ -127,6 +127,16 @@
|
||||
(#set! injection.language "haskell")
|
||||
(#set! injection.combined))
|
||||
|
||||
; pkgs.writers.writeNim[Bin] name attrs content
|
||||
(apply_expression
|
||||
(apply_expression
|
||||
function: (apply_expression
|
||||
function: ((_) @_func)))
|
||||
argument: (indented_string_expression (string_fragment) @injection.content)
|
||||
(#match? @_func "(^|\\.)writeNim(Bin)?$")
|
||||
(#set! injection.language "nim")
|
||||
(#set! injection.combined))
|
||||
|
||||
; pkgs.writers.writeJS[Bin] name attrs content
|
||||
(apply_expression
|
||||
(apply_expression
|
||||
|
Loading…
Reference in New Issue
Block a user