aboutsummaryrefslogtreecommitdiff
path: root/src/parcom.cr
diff options
context:
space:
mode:
authorMatthew Hall <hallmatthew314@gmail.com>2023-03-09 22:13:37 +1300
committerMatthew Hall <hallmatthew314@gmail.com>2023-03-09 22:13:37 +1300
commit46943966888b5ed9db2e0a454754b0f8f9947c48 (patch)
tree820864dce00f364ac59df37089eec19a86d0c798 /src/parcom.cr
parenta26ccb40ca98c82f486f1c57334ccc04534a1a23 (diff)
Fix #parse? catching all exceptions
Diffstat (limited to 'src/parcom.cr')
-rw-r--r--src/parcom.cr2
1 files changed, 1 insertions, 1 deletions
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