diff options
author | Som Snytt <som.snytt@gmail.com> | 2015-06-29 00:29:15 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2015-06-29 00:29:15 -0700 |
commit | d7547cb76d41da04c8448cf1de8a5b5686152d17 (patch) | |
tree | 8d2d636a7ed5c48c43b4ab8e766d61f5810f01a7 /test/files/neg/t5753.check | |
parent | d90d8b89687be5c817cc081ed970328c6d8fd13f (diff) | |
download | scala-d7547cb76d41da04c8448cf1de8a5b5686152d17.tar.gz scala-d7547cb76d41da04c8448cf1de8a5b5686152d17.tar.bz2 scala-d7547cb76d41da04c8448cf1de8a5b5686152d17.zip |
SI-6810 Disallow EOL in char literal
It's clear that char literals are one-lined like normal
string literals.
By the same token, pun intended, char literals accept
unicode escapes the same as string literals, including
`\u000A`.
This commit adds the usual exclusions (CR, NL, SU).
The spec is outdated in outlawing chars that are not
"printable", in particular, the ASCII control codes.
The original intention may have been that the ordinary
string escapes are required, such as "\b\n". Note that
some common escapes are absent, such as "\a".
Diffstat (limited to 'test/files/neg/t5753.check')
0 files changed, 0 insertions, 0 deletions