D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3783 - Text inconsistent with EscapeSequence rules
Summary: Text inconsistent with EscapeSequence rules
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-02-08 19:00 UTC by Jerry Quinn
Modified: 2015-06-09 01:27 UTC (History)
1 user (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-02-08 19:00:37 UTC
The lexical grammar rules say that an EscapeSequence must be contained in a single or double quoted literal.  The text still says that a bare escape sequence is a valid string.

The current DMD compiler has deprecated bare escape sequences, so the spec text should be updated as well.
Comment 1 Jerry Quinn 2010-02-08 19:05:56 UTC
The "Hex Strings" section has a bare escape sequence that should be changed as well:

The following are all equivalent:
"ab" "c"
r"ab" r"c"
r"a" "bc"
"a" ~ "b" ~ "c"
\x61"bc"