Mercurial > vim
annotate runtime/ftplugin/dune.vim @ 25318:24bd79082d86 v8.2.3196
patch 8.2.3196: Vim9: bool expression with numbers only fails at runtime
Commit: https://github.com/vim/vim/commit/05bd9785fd0fd0102ab64554307bff0ec0ae34c1
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 21 21:37:28 2021 +0200
patch 8.2.3196: Vim9: bool expression with numbers only fails at runtime
Problem: Vim9: bool expression with numbers only fails at runtime.
Solution: Check constant to be bool at compile time. (closes https://github.com/vim/vim/issues/8603)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 21 Jul 2021 21:45:04 +0200 |
parents | 15fa3923cc49 |
children | 02939ae3aaca |
rev | line source |
---|---|
17261 | 1 " Language: Dune buildsystem |
2 " Maintainer: Markus Mottl <markus.mottl@gmail.com> | |
3 " Anton Kochkov <anton.kochkov@gmail.com> | |
23466 | 4 " URL: https://github.com/ocaml/vim-ocaml |
17261 | 5 " Last Change: |
6 " 2018 Nov 3 - Added commentstring (Markus Mottl) | |
7 " 2017 Sep 6 - Initial version (Etienne Millon) | |
8 | |
9 if exists("b:did_ftplugin") | |
10 finish | |
11 endif | |
12 let b:did_ftplugin=1 | |
13 | |
14 set lisp | |
15 | |
16 " Comment string | |
17 setl commentstring=;\ %s | |
18 setl comments=:; | |
19 | |
20 setl iskeyword+=#,?,.,/ |