summaryrefslogtreecommitdiffstats
path: root/genvim.txr
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-03-13 21:46:19 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-03-13 21:46:19 -0700
commit352dd33ceb60f08276c80b0821cbdb0ce94a207e (patch)
tree360eb5e129406b93485ef1d33765ac1386eeaf04 /genvim.txr
parenta3ccd2e6feb47fde5d5762c5240ac6c3e41864a6 (diff)
downloadtxr-352dd33ceb60f08276c80b0821cbdb0ce94a207e.tar.gz
txr-352dd33ceb60f08276c80b0821cbdb0ce94a207e.tar.bz2
txr-352dd33ceb60f08276c80b0821cbdb0ce94a207e.zip
Implementing @(if)/@(elif)/@(else) in the pattern language.
Input side for now; output later. * parser.y (if_clause, elif_clauses_opt, else_clause_opt): New nonterminals. (IF, ELIF, ELSE): New tokens. (yybadtoken): Handle IF, ELIF, ELSE. * parser.l: Recognize and return new tokens IF, ELIF and ELSE. * txr.1: Documented. * genvim.txr: Updated with if, elsif and else directive keywords. * txr.vim: Regenerated
Diffstat (limited to 'genvim.txr')
-rw-r--r--genvim.txr3
1 files changed, 2 insertions, 1 deletions
diff --git a/genvim.txr b/genvim.txr
index c134884e..1fabcb91 100644
--- a/genvim.txr
+++ b/genvim.txr
@@ -41,7 +41,8 @@ static void dir_tables_init(void)
[sort (hash-values hash) string-lt])))
@(do (set [txr-sym 0..0] '("rep" "end" "and" "or"
"catch" "finally"
- "until" "last")))
+ "until" "last"
+ "if" "else" "elif")))
@(do (set [txl-sym 0..0] '("macro-time" "macrolet" "symacrolet")))
@(set (txr-sym txl-sym) (@(sortuniq txr-sym) @(sortuniq txl-sym)))
@(output)