diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-04-04 23:00:07 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-04-04 23:00:07 -0700 |
commit | 7f639b761bfd44c6a07b8417007e1cb8a3a2856c (patch) | |
tree | 8e18d2ef264dd7f38edba42b27e935a18b8d047a | |
parent | cd5602baccd5aa32cd7b7f47f2244c9bb303c9a1 (diff) | |
download | txr-7f639b761bfd44c6a07b8417007e1cb8a3a2856c.tar.gz txr-7f639b761bfd44c6a07b8417007e1cb8a3a2856c.tar.bz2 txr-7f639b761bfd44c6a07b8417007e1cb8a3a2856c.zip |
genvim: treatment of comments.
* genvim.txr (comments): new variable. Generate "set comments"
command for TXR and TXR Lisp.
-rw-r--r-- | genvim.txr | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -57,6 +57,7 @@ static void dir_tables_init(void) sys:setqf new lnew meth umeth usl)) (list text))))) +@(bind comments #"\\;\\;\\; \\;\\; \\;") @(define generate (txr-p)) @ (output @(if txr-p "txr.vim" "tl.vim") :named out) " VIM Syntax file for txr @@ -221,6 +222,7 @@ hi def link txr_ign_bkt Comment let b:current_syntax = "lisp" set lispwords=@{lispwords ","},:method,:function,:init,:postinit,:fini +set comments=@{[mapcar (ret `:@(if txr-p #\@ "")@1`) comments] ","} @ (end) @(end) @(generate t) |