Skip to content

OffsetPosition in scala.util.parsing.input does not support mac line endings (\r) #5669

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

Closed
scabug opened this issue Apr 14, 2012 · 2 comments

Comments

@scabug
Copy link

scabug commented Apr 14, 2012

OffsetPosition currently only looks for \n when calculating line breaks, causing files with mac line endings to appear as 1 enormously long line. This is similar to the problem described in #2543, but in OffsetPosition instead of Source.

@scabug
Copy link
Author

scabug commented Apr 14, 2012

Imported From: https://issues.scala-lang.org/browse/SI-5669?orig=1
Reporter: Michael Pilquist (mpilquist)
Affected Versions: 2.9.1

@scabug scabug added the quickfix label Apr 7, 2017
@scala scala deleted a comment from scabug Jul 17, 2018
@SethTisue
Copy link
Member

@SethTisue said:
The parser combinators library is now community-maintained. Issues with it are now tracked at scala/scala-parser-combinators#61 instead of here in the Scala JIRA.

Interested community members: if you consider this issue significant, feel free to open a new issue for it on GitHub, with links in both directions.

gourlaysama added a commit to scala/scala-parser-combinators that referenced this issue Nov 5, 2018
Support '\r' and '\r\n' line endings, closes scala/bug#5669
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants