summaryrefslogtreecommitdiffstats
path: root/genvim.txr
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-04-18 11:15:39 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-04-18 11:15:39 -0700
commit0b69125c17a4d7fd5d46c1e8e8f0684783a29feb (patch)
tree6ec97f82468615e8324118f5fd08de183697ec00 /genvim.txr
parentb147d0de47a5bb55c2c32e4ef2af53bdb619a51e (diff)
downloadtxr-0b69125c17a4d7fd5d46c1e8e8f0684783a29feb.tar.gz
txr-0b69125c17a4d7fd5d46c1e8e8f0684783a29feb.tar.bz2
txr-0b69125c17a4d7fd5d46c1e8e8f0684783a29feb.zip
genvim: work around Vim "contains" bug.
* genvim.txr (tl-sym): Recognize the contains symbol and render it as the string "contain[s]". Vim thinks that contains is reserved a keyword, anywhere in the syn keyword line, and throws an error.
Diffstat (limited to 'genvim.txr')
-rw-r--r--genvim.txr4
1 files changed, 3 insertions, 1 deletions
diff --git a/genvim.txr b/genvim.txr
index e831e85e..ad150f0b 100644
--- a/genvim.txr
+++ b/genvim.txr
@@ -25,7 +25,9 @@ static void dir_tables_init(void)
("keyword" ":")
("usr" "")
(t `@{pkg-name}:`))))
- (list `@qualif@(symbol-name sym)`))))
+ (if (eq sym 'contains)
+ '("contain[s]") ;; Vim doesn't like the word "contains"
+ (list `@qualif@(symbol-name sym)`)))))
@(do (set [txr-sym 0..0] '("end" "and" "or"
"catch" "finally"
"until" "last"