summaryrefslogtreecommitdiffstats
path: root/txr.vim
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2012-02-18 17:43:56 -0800
committerKaz Kylheku <kaz@kylheku.com>2012-02-18 17:43:56 -0800
commitd14ddd48c53f3d9ec960782c75f657a627456d22 (patch)
treef966df8f17c1a532a41ffa7c749edb0fd95418f5 /txr.vim
parent3b1e713d392d607a37e9f6d1520c4f9f584d014d (diff)
downloadtxr-d14ddd48c53f3d9ec960782c75f657a627456d22.tar.gz
txr-d14ddd48c53f3d9ec960782c75f657a627456d22.tar.bz2
txr-d14ddd48c53f3d9ec960782c75f657a627456d22.zip
Allow braced output variables to actually be arbitrary substitutions.
* eval.c (subst_vars): Treat the variable as an arbitrary expression rather than just a symbol. * match.c (subst_vars): Likewise. * parser.y (o_var): Further simplification. The first item in an output var is an expr and not an IDENT. * txr.1: Updated. * txr.vim: Likewise.
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 4d2f4805..6f202d14 100644
--- a/txr.vim
+++ b/txr.vim
@@ -108,7 +108,7 @@ syn match txr_ncomment ";.*" contained
syn match txr_ident "[A-Za-z0-9!$%&*+\-<=>?\\^_~]\+" contained
syn match txr_num "[+-]\?[0-9]\+" contained
-syn region txr_bracevar matchgroup=Delimiter start="@[ \t]*[*]\?{" matchgroup=Delimiter end="}" contains=txr_num,txr_ident,txr_string,txr_dwim,txr_list,txr_regex,txr_quasilit,txr_chr
+syn region txr_bracevar matchgroup=Delimiter start="@[ \t]*[*]\?{" matchgroup=Delimiter end="}" contains=txr_num,txr_meta,txr_metabkt,txr_ident,txr_string,txr_dwim,txr_list,txr_regex,txr_quasilit,txr_chr
syn region txr_directive matchgroup=Delimiter start="@[ \t]*(" matchgroup=Delimiter end=")" contains=txr_keyword,txr_string,txr_list,txr_dwim,txr_metabkt,txr_meta,txr_quasilit,txr_num,txr_ident,txr_regex,txr_string,txr_variable,txr_chr,txr_hash,txr_ncomment