Skip to content

Commit

Permalink
add support for try/catch control words
Browse files Browse the repository at this point in the history
  • Loading branch information
0racle authored Oct 12, 2023
1 parent 2cf3fa5 commit 4cc5924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion j-lex.ijs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {.
Expand Down

0 comments on commit 4cc5924

Please sign in to comment.