Skip to content

馃┕ Fix HereDoc syntax highlighting bleeding into subsequent recipes - #100

Merged
nefrob merged 3 commits into
mainfrom
nefrob/fix-shell-eof-bounds
Mar 28, 2026
Merged

馃┕ Fix HereDoc syntax highlighting bleeding into subsequent recipes#100
nefrob merged 3 commits into
mainfrom
nefrob/fix-shell-eof-bounds

Conversation

@nefrob

@nefrob nefrob commented Mar 28, 2026

Copy link
Copy Markdown
Owner

Description:

Re #73.

  • Fix shell HereDoc syntax highlighting bleeding into subsequent recipes by replacing end with while in embedded language rules.

Thanks @RedCMD.

Testing/Screenshots:

Screenshot 2026-03-28 at 11 19 47鈥疉M

"comment": "JavaScript",
"begin": "^\\s+(#!/usr/bin/env\\s+(?:-S\\s+)?node.*)$",
"end": "(?=^[^\\s])",
"while": "^(?=\\s*$|\\s)",

@nefrob nefrob Mar 28, 2026

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need the indentation version of the solution proposed in the issue.

From the just docs:

Recipe lines can be indented with spaces or tabs, but not a mix of both. All of a recipe's lines must have the same type of indentation, but different recipes in the same justfile may use different indentation.

Each recipe must be indented at least one level from the recipe-name but after that may be further indented.

@nefrob
nefrob merged commit 43c8eab into main Mar 28, 2026
1 check passed
@nefrob
nefrob deleted the nefrob/fix-shell-eof-bounds branch March 28, 2026 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant