-
-
Notifications
You must be signed in to change notification settings - Fork 286
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
[not for merge] Update to fastparse 2 (#510) #541
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented on 2 changes I was unsure about
val ValueArray: P[TValue] = | ||
P((Index ~ "[" ~/ (PrimitiveValue | MessageValue).rep(0, ",".~/) ~/ "]")).map(TArray.tupled) | ||
def ValueArray[_: P]: P[TValue] = | ||
P((Index ~ "[" ~/ (PrimitiveValue | MessageValue).rep(0, ",") ~/ "]")).map(TArray.tupled) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure the .~/
was meaningful here?
@@ -1,48 +1,37 @@ | |||
package scalapb.textformat | |||
|
|||
import fastparse.WhitespaceApi | |||
import fastparse._ | |||
import fastparse.ScriptWhitespace._ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not entirely sure this correctly corresponds to Basics.whiteSpace
Disabled 'native' targets for now since fastparse 2 has not been released for Scala Native yet.
As I don't think it is supposed to be part of the public API?
e977285
to
4b8138d
Compare
this appears to have been merged in some form...? |
Looks like 👍! |
Yes, thanks again for this contribution. |
Refs #510.
I had to disable the 'native' build targets for now since fastparse 2 has not been released for Scala Native yet, see com-lihaoyi/fastparse#215.