android-tree-sitter icon indicating copy to clipboard operation
android-tree-sitter copied to clipboard

Treesitter-Java does not support Chinese identifiers

Open ZeroAicy opened this issue 1 year ago • 1 comments

Java with Chinese identifiers may encounter parsing errors

//https://docs.oracle.com/javase/specs/jls/se8/html/jls-3.html#jls-IdentifierChars identifier: $ => /[\p{L}_$][\p{L}\p{Nd}\u00A2_$]*/,

Did you not handle Unicode characters that Java can support

ZeroAicy avatar Jun 03 '24 21:06 ZeroAicy

identifier: _ => /[\p{XID_Start}$][\p{XID_Continue}\u00A2$]*/, ???

ZeroAicy avatar Jun 04 '24 05:06 ZeroAicy

Report this in tree-sitter-java.

itsaky avatar Aug 28 '24 02:08 itsaky