prettier-java icon indicating copy to clipboard operation
prettier-java copied to clipboard

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

Open omega opened this issue 2 months ago • 1 comments

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

omega avatar Sep 09 '26 20:09 omega

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.

Da7em-T avatar Sep 12 '26 14:09 Da7em-T