diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-02-16 05:51:49 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-02-16 05:51:49 -0800 |
commit | ecc500b1b343a8fc087236cc0b22a25322b6852e (patch) | |
tree | 727760b2b620677c60e823606298bc48a9cb5fe2 /txr.vim | |
parent | dbd876b7ae581822ebe1b3920a51fa32d4267480 (diff) | |
download | txr-ecc500b1b343a8fc087236cc0b22a25322b6852e.tar.gz txr-ecc500b1b343a8fc087236cc0b22a25322b6852e.tar.bz2 txr-ecc500b1b343a8fc087236cc0b22a25322b6852e.zip |
TXR Lisp gets exception handling.
* eval.c (op_catch, expand_catch_clause,
expand_catch): New static functions.
(expand): Handle catch operator.
(eval_init): Added catch operator to op_table,
and registered new functions throw, throwf and error.
* txr.1: Documented catch operator and created
stub section for throw, throwf and error.
* txr.vim: Updated.
* unwind.c (uw_throwfv, uw_errorfv): New functions.
* unwind.h (uw_throwfv, uw_errorfv): Declared.
Diffstat (limited to 'txr.vim')
-rw-r--r-- | txr.vim | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -26,7 +26,7 @@ syn keyword txr_keyword contained define try catch finally throw syn keyword txr_keyword contained defex throw deffilter filter eof eol do syn keyword txl_keyword contained progn prog1 let syn let* lambda call fun -syn keyword txl_keyword contained cond if and or dwim op +syn keyword txl_keyword contained cond if and or dwim op catch syn keyword txl_keyword contained defvar defun inc dec set push pop flip syn keyword txl_keyword contained for for* dohash unwind-protect block syn keyword txl_keyword contained return return-from gen delay @@ -81,6 +81,7 @@ syn keyword txl_keyword contained make-random-state random-state-p syn keyword txl_keyword contained random-fixnum random syn keyword txl_keyword contained range range* generate repeat force +syn keyword txl_keyword contained throw throwf error syn match txr_hash "#" contained syn match txr_quote "[,']" contained |