Skip to content

Commit

Permalink
Tests: fix scalameta#3655 after change in scalameta#3660
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Mar 17, 2024
1 parent ceb3bad commit 5f1f330
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Expand Up @@ -4536,7 +4536,7 @@ class ScalametaParser(input: Input)(implicit dialect: Dialect) { parser =>
while (!StatSeqEnd(token)) {
if (statpfAdd(token)) acceptStatSepOpt()
else if (StatSep(token)) acceptStatSep()
else syntaxError(errorMsg + s" ${token.name}", at = token)
else syntaxError(errorMsg + s" `${token.name}`", at = token)
}

if (isIndented) accept[Indentation.Outdent]
Expand Down
Expand Up @@ -460,19 +460,19 @@ class LitSuite extends ParseSuite {
),
(
"0b01.2",
"""|<input>:1: error: ; expected but double constant found
"""|<input>:1: error: `;` expected but `double constant` found
|0b01.2
| ^""".stripMargin
),
(
"1. + 2.",
"""|<input>:1: error: ; expected but integer constant found
"""|<input>:1: error: `;` expected but `integer constant` found
|1. + 2.
| ^""".stripMargin
),
(
".f",
"""|<input>:1: error: illegal start of definition .
"""|<input>:1: error: illegal start of definition `.`
|.f
|^""".stripMargin
),
Expand Down
Expand Up @@ -666,7 +666,7 @@ class NewFunctionsSuite extends BaseDottySuite {
| ExecutionContext
|?=> T
|""".stripMargin,
"""|error: illegal start of definition ?=>
"""|error: illegal start of definition `?=>`
|?=> T
|^""".stripMargin
)
Expand Down

0 comments on commit 5f1f330

Please sign in to comment.