Skip to content

Commit

Permalink
Adopt suggested changes
Browse files Browse the repository at this point in the history
Co-authored-by: Lionel Parreaux <[email protected]>
  • Loading branch information
chengluyu and LPTK authored Dec 31, 2023
1 parent 857f473 commit 54a3562
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 @@ -87,9 +87,7 @@ class NewLexer(origin: Origin, raise: Diagnostic => Unit, dbg: Bool) {
if (lastSep)
raise(WarningReport(
msg"Trailing separator is not allowed" -> S(loc(j - 1, j)) :: Nil,
newDefs = true,
source = Lexing
))
newDefs = true, source = Lexing))
(if (str.isEmpty) N else S(str), j)
}
/** Take an integer and coverts to `BigInt`. Also checks if it is empty. */
Expand Down

0 comments on commit 54a3562

Please sign in to comment.