You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unicode Gauntlet legality table lists Dart as a Unicode-identifier language; Dart identifiers are ASCII-only #3954
bugUnintended behavior or logic failure in the enginepriority: lowUI tweaks, documentation, and minor optimizationstestingUnit, integration, and E2E pipeline verification
Found by the GitGalaxy-vs-tree-sitter comparison (PR #3953).
tests/unicode_gauntlet/legality.json puts dart in the unicode rule, so the gauntlet renames Dart functions to नाम, 変数 and so on. But the Dart language spec allows only ASCII in identifiers: IDENTIFIER_START: LETTER | '_' | '$', where LETTER is 'a'..'z' | 'A'..'Z'. Those cells therefore test code that isn't valid Dart. tree-sitter-dart rightly refuses them (3/102 before the comparison excluded them as not-legal).
Fix:
Move dart out of the unicode rule, so it gets only the ASCII-name encoding cells, like other ASCII-only languages.
Audit the rest of the table against each spec while there. For example, Kotlin identifiers take Unicode letters and digits but no combining marks (Mn/Mc) outside backticks, so its Devanagari / Tamil / NFD cells may also be testing illegal code.
bugUnintended behavior or logic failure in the enginepriority: lowUI tweaks, documentation, and minor optimizationstestingUnit, integration, and E2E pipeline verification
Activity