Skip to content

fix: wrong syntax error line number - #282

Merged
NejcS merged 1 commit into
Codeplain-ai:mainfrom
sunasrd-byte:fix/wrong-syntax-error-number
Aug 17, 2026
Merged

fix: wrong syntax error line number#282
NejcS merged 1 commit into
Codeplain-ai:mainfrom
sunasrd-byte:fix/wrong-syntax-error-number

Conversation

@sunasrd-byte

Copy link
Copy Markdown
Contributor

Syntax errors reported line numbers from the text left after frontmatter.loads() stripped the metadata block, so they pointed too far up the file — line 5 instead of 11 in the hello-world example. Pad the stripped lines back so numbering matches the .plain file, and normalize CRLF first since .plain files are read in binary mode.

Fixes #98

@sunasrd-byte
sunasrd-byte force-pushed the fix/wrong-syntax-error-number branch from a6c3741 to de4f3fc Compare August 13, 2026 13:35
@NejcS
NejcS merged commit 44d976b into Codeplain-ai:main Aug 17, 2026
5 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.

Wrong syntax error line number

2 participants