Skip to content

Commit

Permalink
Rename fail to abandon
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Jun 4, 2024
1 parent d6c33df commit 97a103a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/kaleidoscope.Kaleidoscope.scala
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ object Kaleidoscope:
else AppliedType(defn.TupleClass(types.length).info.typeSymbol.typeRef, types)

try Pattern.compile(parts.mkString) catch case exception: PatternSyntaxException =>
fail(RegexError(RegexError.Reason.InvalidPattern).message)
abandon(RegexError(RegexError.Reason.InvalidPattern).message)

if types.length == 0 then '{NoExtraction(${Expr(parts.head)})}
else (tupleType.asType: @unchecked) match
Expand Down

0 comments on commit 97a103a

Please sign in to comment.