feat: added language tags to multi-line strings for syntax highlighting #134

Open
jan-leila wants to merge 2 commits from multiline-string-highlighting into main
Owner
  • added language tag comments to 67 multi-line strings for the nix embedded highlighter extension: 60 # bash, 2 <!-- html -->, 2 # ini, 1 # yaml, 1 -- sql, 1 <!-- xml -->
  • each tag goes on its own line at the content's indentation; putting it on the same line as the opening '' breaks the indentation stripping
  • the tag ends up in the string itself, so these strings are skipped: JSON, #! scripts, prose, fragments interpolated into other strings, and formats the extension doesn't support (nginx, nftables, pg_hba, zone files, etc.)
  • the changed scripts and units will rebuild because their content changed
  • all 6 hosts and shell.nix instantiate; I haven't run a full build
- added language tag comments to 67 multi-line strings for the nix embedded highlighter extension: 60 `# bash`, 2 `<!-- html -->`, 2 `# ini`, 1 `# yaml`, 1 `-- sql`, 1 `<!-- xml -->` - each tag goes on its own line at the content's indentation; putting it on the same line as the opening `''` breaks the indentation stripping - the tag ends up in the string itself, so these strings are skipped: JSON, `#!` scripts, prose, fragments interpolated into other strings, and formats the extension doesn't support (nginx, nftables, pg_hba, zone files, etc.) - the changed scripts and units will rebuild because their content changed - all 6 hosts and `shell.nix` instantiate; I haven't run a full build
refactor: moved string language tags in front of the strings
Some checks are pending
build PR #134: check running
2a48338a7f
Some checks are pending
build PR #134: check running
Required
This pull request is broken due to missing fork information.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin multiline-string-highlighting:multiline-string-highlighting
git switch multiline-string-highlighting
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jan-leila/nix-config!134
No description provided.