reference
reference copied to clipboard
Contradictory definition of 'STRING_LITERAL'
STRING_LITERAL definition says:
Where IsolatedCR is:
And ASCII_ESCAPE is:

But look, there is no compile time error:

My question: Is this a human error or some feature of the lexer implementation which I don't know about?
The ASCII_ESCAPE \r and IsolatedCR are not the same. The former is literally writing the two characters \ and r while the later is the single character called cariage return.
Understood thanks. But still there is an inconsistency. If IsolatedCR is a single character, it should be mentioned, because, refereing to this:
and the IsolatedCR definition:
I deduce that IsolatedCR is exactly two characters.