Bug 20971 – When parsing identifiers, unicode LS and PS are considered an error

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-06-23T13:50:11Z
Last change time
2024-12-13T19:09:39Z
Assigned to
No Owner
Creator
Stanislav Blinov
Moved to GitHub: dmd#19732 →

Comments

Comment #0 by stanislav.blinov — 2020-06-23T13:50:11Z
According to grammar, LS and PS (0x2028 and 0x2029) are EndOfLine. But, if encountered while parsing an identifier, they're rejected as 'not allowed in identifier': // ASCII end of line parses fine int ascii ; int ls
; // char 0x2028 not allowed in identifier int ps
; // char 0x2029 not allowed in identifier
Comment #1 by robert.schadek — 2024-12-13T19:09:39Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19732 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB