Skip to content

JavaTokenParsers.ident doesn't work on Scala.js #55

Closed
@rhz

Description

@rhz

Hi, I'm using libraryDependencies += "org.scala-js" %%% "scala-parser-combinators" % "1.0.2" in build.sbt and JavaTokenParsers.ident doesn't work for "a" (it works in the console but not in the browser). The error message is

[1.1] failure: string matching regex `\p{javaJavaIdentifierStart}\p{javaJavaIdentifierPart}*' expected but `a' found

a
^

The code to replicate it:

val p = new JavaTokenParsers {}
println(p.parse(p.ident,"a"))

Cheers,
Ricardo

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions