summaryrefslogtreecommitdiffstats
path: root/txr.vim
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2012-02-03 00:28:01 -0800
committerKaz Kylheku <kaz@kylheku.com>2012-02-03 00:28:01 -0800
commit442c9efa4b176ff2c4c89a43beac3ea3fad247d4 (patch)
tree20f0d8545174ed466d2825ea0315a0a7fdb57c50 /txr.vim
parenta7d3edcff56ee0faa8355ceaea7bc23c2f2e2aa7 (diff)
downloadtxr-442c9efa4b176ff2c4c89a43beac3ea3fad247d4.tar.gz
txr-442c9efa4b176ff2c4c89a43beac3ea3fad247d4.tar.bz2
txr-442c9efa4b176ff2c4c89a43beac3ea3fad247d4.zip
* eval.c (rest_s, op_s): New variables.
(do_eval_args): Allow calls specified by improper lists like (x y . z) where the z expression must evaluate to a list that turns into addition arguments to be applied. (transform_op, expand_op): New static functions. (expand): Call expand_op. (eval_init): Initialize rest_s and op_s. Use rest_s to register rest function. * lib.c (gensym): New function based on gensymv. (gensymv): Now calls gensym. * lib.h (gensym): Declared. * parser.l: Parse @ followed by digits as a new kind of token, METANUM. * parser.y (METANUM): New token. (meta_expr, exprs): Missing rlcp's added. (expr): METANUM variant introduced. (yybadtoken): Handle METANUM. * txr.1: Documented one-symbol argument list of lambda. Documented op. Closed some unbalanced parentheses. * txr.vim: Highlight op.
Diffstat (limited to 'txr.vim')
-rw-r--r--txr.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/txr.vim b/txr.vim
index bcb572fb..eaefb55a 100644
--- a/txr.vim
+++ b/txr.vim
@@ -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
+syn keyword txl_keyword contained cond if and or dwim op
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