Skip to content

Add heredoc like string support for preserving exact formatting#11

Merged
mario-deluna merged 2 commits into
ClanCats:masterfrom
dgjorgjiev88:feature/preserv-formatting
Jul 8, 2026
Merged

Add heredoc like string support for preserving exact formatting#11
mario-deluna merged 2 commits into
ClanCats:masterfrom
dgjorgjiev88:feature/preserv-formatting

Conversation

@dgjorgjiev88

Copy link
Copy Markdown
Contributor
  • Introduces <<<TAG...TAG syntax to opt-out of whitespace collapsing
  • Preserves indentation and repeated spaces in multi-line strings
  • Handles single quotes inside heredocs without termination issues
  • Maintains backward compatibility with existing whitespace handling
  • Adds comprehensive test coverage for heredoc functionality

- Introduces <<<TAG...TAG syntax to opt-out of whitespace collapsing
- Preserves indentation and repeated spaces in multi-line strings
- Handles single quotes inside heredocs without termination issues
- Maintains backward compatibility with existing whitespace handling
- Adds comprehensive test coverage for heredoc functionality
- Corrects line number tracking after heredoc placeholder substitution
- Ensures error messages point to accurate source lines
- Handles multi-line heredocs with Windows-style line endings
- Adds comprehensive test coverage for line number preservation
- Fixes edge cases including empty heredoc bodies and adjacent closing tags
@mario-deluna mario-deluna merged commit 914c48a into ClanCats:master Jul 8, 2026
4 checks passed
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.

2 participants