annotate runtime/indent/cuda.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 |
7bc41231fbc7 |
children |
4027cefc2aab |
rev |
line source |
2034
|
1 " Vim indent file
|
|
2 " Language: CUDA
|
|
3 " Maintainer: Bram Moolenaar <Bram@vim.org>
|
|
4 " Last Change: 2008 Nov 29
|
|
5
|
|
6 " Only load this indent file when no other was loaded.
|
|
7 if exists("b:did_indent")
|
|
8 finish
|
|
9 endif
|
|
10 let b:did_indent = 1
|
|
11
|
|
12 " It's just like C indenting
|
|
13 setlocal cindent
|
|
14
|
|
15 let b:undo_indent = "setl cin<"
|