Skip to content

test: cover multiline string line endings - #166

Merged
kjonescertinia merged 1 commit into
mainfrom
ao/apex-parser-2/issue-158-multiline-line-endings
Oct 1, 2026
Merged

kjonescertinia merged 1 commit into
mainfrom
ao/apex-parser-2/issue-158-multiline-line-endings

Conversation

@nawforce

@nawforce nawforce commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Multiline string literals already accept LF, CRLF, and bare CR openings. Add matching Java and TypeScript lexer/parser regressions to lock in recognition and exact raw token/body preservation, including the leading newline and escape text.

Assert the literal's start position and following tokens' line/column positions both on the closing line and after another CRLF. Document deliberate CRLF acceptance next to the existing lexer rule. The grammar behavior is unchanged; runtime newline stripping remains out of scope.

Validation: npm run build passes (147 TypeScript tests, 146 Java tests, bundle/type generation and JVM packaging); Prettier and git diff --check pass. SAMPLES=/Users/kevinjones/adt/apex-samples npm run systest passes against v1.4.0 (100 tests and 100 snapshots).

GitHub Build CI passes, including the system sample suite.

Closes #158.

@nawforce
nawforce marked this pull request as ready for review October 1, 2026 21:32
@kjonescertinia
kjonescertinia merged commit 742a081 into main Oct 1, 2026
1 check passed
@kjonescertinia
kjonescertinia deleted the ao/apex-parser-2/issue-158-multiline-line-endings branch October 1, 2026 21:45
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.

Test CRLF line endings for multiline string literals

2 participants