annotate runtime/syntax/bash.vim @ 26974:fceb494e22de
v8.2.4016
patch 8.2.4016: Vim9: incorrect error for argument that is shadowing var
Commit: https://github.com/vim/vim/commit/58493cfae255adec2d5b407593b82d07abcc0975
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 6 12:23:30 2022 +0000
patch 8.2.4016: Vim9: incorrect error for argument that is shadowing var
Problem: Vim9: incorrect error for argument that is shadowing var.
Solution: Ignore variable that is not in block where the function was
defined.
author |
Bram Moolenaar <Bram@vim.org> |
date |
Thu, 06 Jan 2022 13:30:04 +0100 |
parents |
03b854983b14 |
children |
71cbad0921c9 |
rev |
line source |
18186
|
1 " Vim syntax file
|
|
2 " Language: bash
|
|
3 " Maintainer: Bram
|
|
4 " Last Change: 2019 Sep 27
|
|
5
|
|
6 " quit when a syntax file was already loaded
|
|
7 if exists("b:current_syntax")
|
|
8 finish
|
|
9 endif
|
|
10
|
|
11 " The actual syntax is in sh.vim and controlled by buffer-local variables.
|
|
12 unlet! b:is_sh
|
|
13 unlet! b:is_kornshell
|
|
14 let b:is_bash = 1
|
|
15
|
|
16 runtime! syntax/sh.vim
|
|
17
|
|
18 let b:current_syntax = 'bash'
|
|
19
|
|
20 " vim: ts=8
|