Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lexd files without final newline #5

Open
mr-martian opened this issue Jul 31, 2022 · 2 comments
Open

Lexd files without final newline #5

mr-martian opened this issue Jul 31, 2022 · 2 comments

Comments

@mr-martian
Copy link
Collaborator

Due to the various whitespace controls in the lexd grammar, comments are currently required to be newline-terminated. This breaks if there is a comment that ends in EOF rather than \n.

Options:

(moved from #4)

@TinoDidriksen
Copy link
Member

I would strongly argue any text file that doesn't end in \n is malformed. All lines must be terminated, also the last one.

@mr-martian
Copy link
Collaborator Author

And apertium-lint https://github.com/apertium/apertium-lint/blob/master/linters/file_linter.py#L81 currently treats it as such.

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

No branches or pull requests

2 participants