D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3907 - @ attributes not part of lexical grammar
Summary: @ attributes not part of lexical grammar
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL: http://digitalmars.com/d/2.0/lex.html
Keywords: spec
Depends on:
Blocks:
 
Reported: 2010-03-08 22:03 UTC by Jerry Quinn
Modified: 2014-02-15 02:45 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Jerry Quinn 2010-03-08 22:03:40 UTC
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 Ellery Newcomer 2010-05-23 13:45:16 UTC
(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
Comment 2 Walter Bright 2012-01-19 12:31:23 UTC
file:///H:/cbx/mars/doc/declaration.html#Property
Comment 3 Walter Bright 2012-01-19 12:41:35 UTC
I meant:

http://dlang.org/declaration.html#Property