digitalmars.D.learn - String Literals
Hi,
The specification of string literals has either some errors or I 
don't understand what is meant by a Character.
For instance we have:
WysiwygString:
     r" WysiwygCharacters_opt " StringPostfix_opt
WysiwygCharacters:
     WysiwygCharacter
     WysiwygCharacter WysiwygCharacters
WysiwygCharacter:
     Character
     EndOfLine
Character:
     any Unicode character
Which to me means that e.g.
r"""
should be a WysiwygString, which the compiler thinks is not (not 
surprisingly).
Am I misunderstanding something?
 May 03 2022
On Tuesday, 3 May 2022 at 17:21:47 UTC, JG wrote:Hi, The specification of string literals has either some errors or I don't understand what is meant by a Character. [...] Which to me means that e.g. r""" should be a WysiwygString, which the compiler thinks is not (not surprisingly). Am I misunderstanding something?The rule is not correct but the implementation in the lexer is. That's a valid issue for dlang.org
 May 03 2022








 
  
  
  user1234 <user1234 12.de>
 user1234 <user1234 12.de>