Skip to content

sh/bash highlight broken since upgrade of sh.vim version 205  #11937

@ilya-bobyr

Description

@ilya-bobyr

Steps to reproduce

Latest upgrade of the runtime files brought in sh.vim version 205.
Unfortunately, it seems to be breaking sh/bash syntax highlight pretty badly for me.

On the left is sh.vim version 204, on the right is sh.vim version 205:
image

I was writing a few scripts, and every time, after a second or third command, the highlight was switching into shCmdSubRegion, covering everything.
On the picture that happened in line 3, and line 4 and below is all highlighted green.

Here is the test case from the picture:

#!/bin/bash

for name in {1..3}; do
  echo "$name"
done

Expected behaviour

Bash highlight works as before.

Version of Vim

9.0.1275, build from the lastest source

Environment

OS: Ubuntu 22.10
Terminal: Alacritty, build from the latest source
$TERM: alacritty
shell: fish, version 3.6.0

Logs and stack traces

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions