-
-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Labels
component | styleModifications to the formatting rulesModifications to the formatting rulesroadmap | comment pragmasroadmap | style configstatus | readyWe agree it is good to implement thisWe agree it is good to implement thistype | feature requestNew feature or requestNew feature or request
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.
rummik, bew, viperML, iynaix, Misterio77 and 27 more
Metadata
Metadata
Assignees
Labels
component | styleModifications to the formatting rulesModifications to the formatting rulesroadmap | comment pragmasroadmap | style configstatus | readyWe agree it is good to implement thisWe agree it is good to implement thistype | feature requestNew feature or requestNew feature or request