From 654e9d3dfd5d81e6061b25e586d2fec28c4a4a65 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 18 Apr 2020 11:15:39 -0700 Subject: 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. --- genvim.txr | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3