[vim/vim] Commit be4e016 broke syntax highlighting in bash scripts (Issue #11953)

11 views
Skip to first unread message

lindhobe

unread,
Feb 5, 2023, 3:33:04 PM2/5/23
to vim/vim, Subscribed

Steps to reproduce

Updates to runtime/syntax/sh.vim (in commit be4e016) broke syntax highlighting of bash scripts on my system. The following section of code excerpt is rendered completely in magenta beginning with the "if" statement:

#! /usr/bin/bash
# vim: set filetype=bash:

# set paths
export PATH='/usr/local/scripts:/usr/local/bin:/usr/local/sbin'
export PATH="${PATH}:/usr/lib/jvm/default-java/bin:/usr/local/schily/bin"
if [ -L /bin ]; then
  export PATH="${PATH}:/usr/sbin:/usr/bin:/usr/games"
else
  export PATH="${PATH}:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
fi
export INFOPATH='/usr/local/share/info:/usr/share/info'
export MANPATH='/usr/local/share/man:/usr/lib/jvm/java-sun/man'
export MANPATH="${MANPATH}:/usr/local/schily/share/man:/usr/share/man"

If I delete the blank line between lines 2 and 4, though, it renders correctly.

Expected behaviour

Correct syntax highlighting for bash files.

Version of Vim

Runtime updates between 9.0.1274 and 9.0.1275

Environment

Debian Testing
xterm-378
XTERM=xterm
bash-5.2.15

Logs and stack traces

No response


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/11953@github.com>

lindhobe

unread,
Feb 5, 2023, 3:38:02 PM2/5/23
to vim/vim, Subscribed

Plus a couple of screenshots:

BEFORE:
before
AFTER:
after


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/11953/1418258813@github.com>

lindhobe

unread,
Feb 5, 2023, 4:02:43 PM2/5/23
to vim/vim, Subscribed

Ah, this is a duplicate of #11937.


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/11953/1418263738@github.com>

K.Takata

unread,
Feb 7, 2023, 5:11:35 AM2/7/23
to vim/vim, Subscribed

Closing as duplicate.


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/11953/1420517685@github.com>

K.Takata

unread,
Feb 7, 2023, 5:11:35 AM2/7/23
to vim/vim, Subscribed

Closed #11953 as completed.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/11953/issue_event/8456328059@github.com>

Reply all
Reply to author
Forward
0 new messages