[vim/vim] incorrect syntax highlighting of local variable assigned an array with bash (Issue #18472)

7 views
Skip to first unread message

user202729

unread,
Oct 2, 2025, 9:42:12 PMOct 2
to vim/vim, Subscribed
user202729 created an issue (vim/vim#18472)

Steps to reproduce

  1. set ft=bash
  2. write in the editor
f(){
    local a=(1 2)
}

see that the ( in (1 2) is blue, but the ) is white.

Expected behaviour

the ) in (1 2) is also blue.

Version of Vim

9.1.1349

Environment

Ubuntu 22

Logs and stack traces


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/18472@github.com>

Aliaksei Budavei

unread,
Oct 19, 2025, 5:46:13 PM (2 days ago) Oct 19
to vim/vim, Subscribed
zzzyxwvut left a comment (vim/vim#18472)

Both parentheses (of shArrayRegion) are rendered in the same
colour with:

cd /path/to/fork
git switch --detach v9.1.1349
VIMRUNTIME=runtime vim --clean --cmd 'set rtp=$VIMRUNTIME' -c 'set ft=bash'
:scriptnames


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/18472/3419981822@github.com>

Reply all
Reply to author
Forward
0 new messages