Skip to content

Commit

Permalink
Update hkmc2/shared/src/main/scala/hkmc2/syntax/Parser.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
LPTK authored Dec 4, 2024
1 parent 910b671 commit 8b4b6a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hkmc2/shared/src/main/scala/hkmc2/syntax/Parser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ abstract class Parser(
case (NEWLINE, _) :: (KEYWORD(kw), _) :: _
if kw.canStartInfixOnNewLine && kw.leftPrecOrMin > prec
&& infixRules.kwAlts.contains(kw.name)
&& kw != Keyword.`do` // This is to avoid the following case:
&& kw isnt Keyword.`do` // This is to avoid the following case:
// ```
// 0 then "null"
// do console.log("non-null")
Expand Down

0 comments on commit 8b4b6a5

Please sign in to comment.