mirror of https://github.com/helix-editor/helix
feat: add mising builtins.fromTOML nix tree-sitter injection (#12776)
parent
a19c95a0a7
commit
2197b3cfa0
|
@ -50,6 +50,15 @@
|
||||||
(#set! injection.language "json")
|
(#set! injection.language "json")
|
||||||
(#set! injection.combined))
|
(#set! injection.combined))
|
||||||
|
|
||||||
|
; builtins.fromTOML toml
|
||||||
|
; Example: https://github.com/NixOS/nix/blob/3e8cd2ffe6c2c6ed8aae7853ddcfcc6d2a49b0ce/tests/functional/lang/eval-okay-fromTOML.nix
|
||||||
|
((apply_expression
|
||||||
|
function: (_) @_func
|
||||||
|
argument: (indented_string_expression (string_fragment) @injection.content))
|
||||||
|
(#match? @_func "(^|\\.)fromTOML$")
|
||||||
|
(#set! injection.language "toml")
|
||||||
|
(#set! injection.combined))
|
||||||
|
|
||||||
; trivial-builders.nix pkgs.writeShellScript[Bin] name content
|
; trivial-builders.nix pkgs.writeShellScript[Bin] name content
|
||||||
((apply_expression
|
((apply_expression
|
||||||
function: (apply_expression function: (_) @_func)
|
function: (apply_expression function: (_) @_func)
|
||||||
|
|
Loading…
Reference in New Issue