Open
Description
LnL7/vim-nix#28 proposes using inline comments as editor hints for highlighting foreign code blocks. But Alejandra doesn’t currently behave well with that. Here’s a before/after Alejandra excerpt from my experiment using that style:
- initExtra = /* sh */ ''
- source "${pkgs.darcs}/share/bash-completion/completions/darcs"
- '';
+ initExtra =
+ /*
+ sh
+ */
+ ''
+ source "${pkgs.darcs}/share/bash-completion/completions/darcs"
+ '';
This isn’t yet a settled convention, so raising it here for consideration as to whether supporting one-line /* … */
in Alejandra is the way to go, or if there should be some other approach for handling foreign code blocks.