Mercurial > vim
annotate runtime/compiler/tcl.vim @ 22196:d835f2fdfcfc v8.2.1647
patch 8.2.1647: Vim9: result of expression with && and || is not a bool
Commit: https://github.com/vim/vim/commit/4ed124cc6c0c55385c3b2fed9f9357baf42edbcc
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 9 20:03:46 2020 +0200
patch 8.2.1647: Vim9: result of expression with && and || is not a bool
Problem: Vim9: result of expression with && and || cannot be assigned to a
bool variable.
Solution: Add the TTFLAG_BOOL_OK flag and convert the value if needed.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 09 Sep 2020 20:15:03 +0200 |
parents | f7add3891e95 |
children | e1df51f68736 |
rev | line source |
---|---|
7 | 1 " Vim compiler file |
2 " Compiler: tcl | |
5161
f7add3891e95
Updated runtime files. Fix NL translations.
Bram Moolenaar <bram@vim.org>
parents:
36
diff
changeset
|
3 " Maintainer: Doug Kearns <dougkearns@gmail.com> |
36 | 4 " Last Change: 2004 Nov 27 |
7 | 5 |
6 if exists("current_compiler") | |
7 finish | |
8 endif | |
9 let current_compiler = "tcl" | |
10 | |
11 if exists(":CompilerSet") != 2 " older Vim always used :setlocal | |
12 command -nargs=* CompilerSet setlocal <args> | |
13 endif | |
14 | |
15 CompilerSet makeprg=tcl | |
16 | |
17 CompilerSet errorformat=%EError:\ %m,%+Z\ %\\{4}(file\ \"%f\"\ line\ %l),%-G%.%# |