Thread overview
[Issue 19309] [Reg 2.080.0] Unicode char reference in a comment causes warning
Oct 17, 2018
Ludovit Lucenic
Dec 13, 2018
Walter Bright
Dec 18, 2019
Walter Bright
October 17, 2018
https://issues.dlang.org/show_bug.cgi?id=19309

--- Comment #1 from Ludovit Lucenic <llucenic@gmail.com> ---
This is the code excerpt (comment):

/**
 * Grammar:
 *      source code characters are defined by the following grammar rules
 * ---
 *Character ::= LineCharacter | EndOfLineCharacter
 *
 *LineCharacter ::= Space
 *              | [#x0021-#x2027] | [#x202A-#xD7FF]
 *              | [#xE000-#xFFFD] | [#x10000-#x10FFFF]
 *
 *
 *Space ::= #x0020 | #x0009 | #x000B | #x000C
 *
 *
 *EndOfLineCharacter ::= #x000D | #x000A | #x2028 | #x2029
 *
 *
 *EndOfLine ::= #x000D #x000A | EndOfLineCharacter | EndOfFile
 *
 *
 *EndOfFile ::= #x0000 | #x001A | < physical-end-of-file >
 * ---
 * See_also:
 *      $(D isNewline()), $(D isWhitespace())
 */

I had to remove all #s from in front of the x0000s in order to compile with 2.080.0.

--
December 13, 2018
https://issues.dlang.org/show_bug.cgi?id=19309

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> ---
I can't reproduce this problem.

The error message comes from the lexer trying to process text into tokens. This does not happen inside regular /* */ comments. I suspect there is something else going on with your code.

Please verify:

1. that the code presented here is exactly the entire contents of the file you are trying to compile

2. what command line switches you are using

3. what system you are compiling on

4. the filename extension of the file you're compiling

--
December 18, 2019
https://issues.dlang.org/show_bug.cgi?id=19309

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Walter Bright <bugzilla@digitalmars.com> ---
Still cannot reproduce the problem. Reopen if how to repro it is found.

--