Skip to content

Commit

Permalink
Adopt suggested changes
Browse files Browse the repository at this point in the history
Co-authored-by: Lionel Parreaux <lionel.parreaux@gmail.com>
  • Loading branch information
chengluyu and LPTK authored Dec 31, 2023
1 parent 54a3562 commit c07ac62
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions shared/src/main/scala/mlscript/NewLexer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ class NewLexer(origin: Origin, raise: Diagnostic => Unit, dbg: Bool) {
if (firstSep)
raise(WarningReport(
msg"Leading separator is not allowed" -> S(loc(i - 1, i)) :: Nil,
newDefs = true,
source = Lexing
))
newDefs = true, source = Lexing))
if (lastSep)
raise(WarningReport(
msg"Trailing separator is not allowed" -> S(loc(j - 1, j)) :: Nil,
Expand Down

0 comments on commit c07ac62

Please sign in to comment.