Bug 3907 – @ attributes not part of lexical grammar
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2010-03-08T22:03:00Z
Last change time
2014-02-15T02:45:51Z
Keywords
spec
Assigned to
nobody
Creator
jlquinn
Comments
Comment #0 by jlquinn — 2010-03-08T22:03:40Z
The docs mention several attributes starting with @. The lexical docs don't mention @ at all.
Is i.e. @property a special token? Or is @ a token followed by the text "property"? Is whitespace permitted between @ and the remainder of the attribute?
Comment #1 by ellery-newcomer — 2010-05-23T13:45:16Z
(In reply to comment #0)
> The docs mention several attributes starting with @. The lexical docs don't
> mention @ at all.
>
> Is i.e. @property a special token? Or is @ a token followed by the text
> "property"? Is whitespace permitted between @ and the remainder of the
> attribute?
A peek in the parser shows '@' is a distinct token followed by an identifier