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

Stack overflow with JavaTokenParsers.stringLiteral #4

Merged
merged 1 commit into from Oct 8, 2013

Conversation

pwagland
Copy link

@pwagland pwagland commented Oct 7, 2013

The regular expression that is used to match stringLiterals cannot match strings longer than about 2500 characters. You might wonder why this would be required, still it isn't possible.

A very minor change to make the regext possessive fixes the problem, and won't cause any regressions, as backtracking is not possible in the regex anyway.

@pwagland
Copy link
Author

pwagland commented Oct 7, 2013

Please note that this was originally reported here: https://github.com/scala/scala/issues/3017

@adriaanm
Copy link
Contributor

adriaanm commented Oct 8, 2013

Awesome, thanks!

@adriaanm
Copy link
Contributor

adriaanm commented Oct 8, 2013

@pwagland, could you please sign the Scala CLA online?

@pwagland
Copy link
Author

pwagland commented Oct 8, 2013

@adriaanm Done. CLA is signed.

@adriaanm
Copy link
Contributor

adriaanm commented Oct 8, 2013

Congrats on the first contribution to the modularized parser combinators! Keep em coming :-)

adriaanm added a commit that referenced this pull request Oct 8, 2013
Stack overflow with JavaTokenParsers.stringLiteral
@adriaanm adriaanm merged commit 3a1df25 into scala:master Oct 8, 2013
@pwagland pwagland deleted the AllowLongStrings branch October 8, 2013 22:12
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.

None yet

3 participants