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

NumericUnderscores is misparsed #110

Open
gergoerdi opened this issue Nov 28, 2024 · 0 comments
Open

NumericUnderscores is misparsed #110

gergoerdi opened this issue Nov 28, 2024 · 0 comments

Comments

@gergoerdi
Copy link

gergoerdi commented Nov 28, 2024

With the NumericUnderscores language extension, 100_000_000 is valid Haskell syntax. Without the extension, it is not, so lhs2tex doesn't need to be aware if the extension is turned on or not.

The problem is that lhs2tex tokenizes 100_000_000 into two tokens: a numeral "100" and a varid "_000_000". Even if varids and numerals are otherwise set up to be typeset the same, it is a problem because it adds an extra space between "100" and "_000_000" in the output.

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

1 participant