From 4cc5924323fa56bb9c3ebe4a720c1bc97fd32fac Mon Sep 17 00:00:00 2001 From: 0racle Date: Fri, 13 Oct 2023 09:49:43 +1100 Subject: [PATCH] add support for try/catch control words --- j-lex.ijs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/j-lex.ijs b/j-lex.ijs index d468696..8e6ee6f 100644 --- a/j-lex.ijs +++ b/j-lex.ijs @@ -49,7 +49,7 @@ jcut =: verb define NB. helpers for jtyp isName =: [: # '^[[:alpha:]]\w*$' & rxmatches reCtrl =: '^(assert|break|continue|(goto|label|for)(_\w+)|do|end|if|else|elseif|return' -reCtrl =: reCtrl,'|select|f?case|throw|while|whilst)[.]' +reCtrl =: reCtrl,'|select|f?case|throw|while|whilst|try|catch[dt]?)[.]' isCtrl =: [: # reCtrl & rxmatches isCopula =: [: # '=[.:]' & rxmatches isParen =: (1=#) *. [: +./@, '()' -:"0 {.