annotate runtime/syntax/bash.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 03b854983b14
children 71cbad0921c9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18186
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Vim syntax file
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Language: bash
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Maintainer: Bram
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 " Last Change: 2019 Sep 27
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 " quit when a syntax file was already loaded
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 if exists("b:current_syntax")
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 finish
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 endif
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 " The actual syntax is in sh.vim and controlled by buffer-local variables.
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 unlet! b:is_sh
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 unlet! b:is_kornshell
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14 let b:is_bash = 1
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 runtime! syntax/sh.vim
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18 let b:current_syntax = 'bash'
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20 " vim: ts=8