-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Regression in parsing XML symbols used in old if-else syntax #16459
Comments
May I take this issue? |
@i10416, you may take this issue |
i10416
added a commit
to i10416/dotty
that referenced
this issue
Jan 25, 2024
The parser could not parse `if expr` that contains single-quoted text(s) inside XML literal with newline(s) because `followedByToken`, which is used to detect `do` or `then` token after `if`, unintentionally consumed XMLSTART symbol, which prevented the parser from delegating parse to XML parser.
odersky
added a commit
that referenced
this issue
Feb 1, 2024
close #16459 The parser could not parse `if expr` that contains single-quoted text(s) inside XML literal with newline(s) because `followedByToken`, which is used to detect `do` or `then` token after `if`, unintentionally consumed XMLSTART symbol, which prevented the parser from delegating parse to XML parser.
WojciechMazur
pushed a commit
that referenced
this issue
Jun 28, 2024
The parser could not parse `if expr` that contains single-quoted text(s) inside XML literal with newline(s) because `followedByToken`, which is used to detect `do` or `then` token after `if`, unintentionally consumed XMLSTART symbol, which prevented the parser from delegating parse to XML parser. [Cherry-picked 1fc27df]
WojciechMazur
pushed a commit
that referenced
this issue
Jun 30, 2024
The parser could not parse `if expr` that contains single-quoted text(s) inside XML literal with newline(s) because `followedByToken`, which is used to detect `do` or `then` token after `if`, unintentionally consumed XMLSTART symbol, which prevented the parser from delegating parse to XML parser. [Cherry-picked 1fc27df]
WojciechMazur
added a commit
that referenced
this issue
Jul 1, 2024
Backports #19531 to the LTS branch. PR submitted by the release tooling. [skip ci]
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Compiler version
3.2.1
Minimized code
Replacing parentheses with new if/then syntax allows to compile this code
Output
Expectation
Should compile with output:
The text was updated successfully, but these errors were encountered: