Skip to content

fix: preserve line comment at end of file without trailing newline#1130

Merged
hishamhm merged 1 commit into
teal-language:mainfrom
efredriksson:dev-ef-lexer-handle-comment-with-no-trailing-newline
Jun 8, 2026
Merged

fix: preserve line comment at end of file without trailing newline#1130
hishamhm merged 1 commit into
teal-language:mainfrom
efredriksson:dev-ef-lexer-handle-comment-with-no-trailing-newline

Conversation

@efredriksson

Copy link
Copy Markdown
Contributor

Found through fuzzing that lexer can drop line comments if nothing comes after it.

@hishamhm
hishamhm merged commit 4b123b8 into teal-language:main Jun 8, 2026
7 of 8 checks passed
@hishamhm

hishamhm commented Jun 8, 2026

Copy link
Copy Markdown
Member

Thanks!

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