Skip to content

Change to web-tree-sitter for parsing broke parsing some (apparently valid) java-code #1046

Closed

Description

@omega
String v1€ = "1 €";

This seems to compile as java-code, but latest version of prettier-java (we upgraded from an older version 2.6.7 -> 2.10.3), then fails to parse the file that has € in its identifier/variable names.

This should probably also be filed upstream with tree-sitter, but I figured I'd add it here as well, since this was where I went looking for why parsing broke all of a sudden

Activity

  1. Da7em-T commented on Sep 12, 2026

    @Da7em-T

    Opened #1055 with a unit test for euro/pound/yen identifiers and a vendored parser wasm until tree-sitter-java-orchard includes currency symbols in the identifier regex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions