prettier-java
prettier-java copied to clipboard
Change to web-tree-sitter for parsing broke parsing some (apparently valid) java-code
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
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.