Skip to content

Commit

Permalink
Merge pull request #2 from 0racle/patch-1
Browse files Browse the repository at this point in the history
add support for try/catch control words
  • Loading branch information
tangentstorm authored Jan 1, 2024
2 parents 2cf3fa5 + 4cc5924 commit 7919559
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 7919559

Please sign in to comment.