On Thursday, 25 November 2021 at 10:10:25 UTC, Dennis wrote:
On Thursday, 25 November 2021 at 08:06:27 UTC, rumbu wrote:
Also, this works also for #line, even if the specification tells us that all tokens must be on the same line

Where does it say that?

Well:

```
#line IntegerLiteral Filespec? EndOfLine
```

Having EndOfLine at the end means for me that there are no other EOLs between, otherwise this syntax should pass but it's not (DMD last):

```d
#line 12
"source.d"
```

I am not asking this questions out of thin air, I am trying to write a conforming lexer and this is one of the ambiguities.

Reply via email to