Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use emoji as identifier #45

Open
oovm opened this issue Mar 10, 2024 · 0 comments
Open

Use emoji as identifier #45

oovm opened this issue Mar 10, 2024 · 0 comments

Comments

@oovm
Copy link

oovm commented Mar 10, 2024

There seems to be a problem when processing emoji,

The input text is utf-8.

The lexer rule is: ValkyrieAntlrLexer.g4

UNICODE_ID: [_\p{XID_start}\p{Emoji_Presentation}] [\p{XID_continue}\p{Emoji}]*;

The input is: 🔥extract

Wrong behavior

image

image

Expected behavior

image

it seems that all surrogate pairs have problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant