From 46943966888b5ed9db2e0a454754b0f8f9947c48 Mon Sep 17 00:00:00 2001 From: Matthew Hall Date: Thu, 9 Mar 2023 22:13:37 +1300 Subject: Fix #parse? catching all exceptions --- src/parcom.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/parcom.cr b/src/parcom.cr index c1ac147..cb3408a 100644 --- a/src/parcom.cr +++ b/src/parcom.cr @@ -55,7 +55,7 @@ module Parcom def parse?(tokens : TokenStream(T)) : Result(T, V)? self.parse(tokens) - rescue + rescue ParserException return nil end -- cgit v1.2.1