diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-04-18 11:15:39 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-04-18 11:15:39 -0700 |
commit | 0b69125c17a4d7fd5d46c1e8e8f0684783a29feb (patch) | |
tree | 6ec97f82468615e8324118f5fd08de183697ec00 /genvim.txr | |
parent | b147d0de47a5bb55c2c32e4ef2af53bdb619a51e (diff) | |
download | txr-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.txr | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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" |