Commit ab63863
committed
Always end interpolation even if
When parsing the end of an interpolation segment,
even if there is a closing `)` present, the lexer
may still think it's inside a nested position in
an interpolated segment. As such, make sure to
always tell it to move back to string literal
mode for better diagnostics.) is present1 parent 8e48b28 commit ab63863
File tree
3 files changed
+6
-7
lines changed- Sources/SwiftParser
- Tests/SwiftParserTest
- translated
3 files changed
+6
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
| 493 | + | |
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1656 | 1656 | | |
1657 | 1657 | | |
1658 | 1658 | | |
1659 | | - | |
1660 | | - | |
| 1659 | + | |
| 1660 | + | |
1661 | 1661 | | |
1662 | 1662 | | |
1663 | | - | |
1664 | | - | |
1665 | | - | |
| 1663 | + | |
| 1664 | + | |
1666 | 1665 | | |
1667 | 1666 | | |
1668 | 1667 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
0 commit comments