#987060 vim: highlight: make: Incorrect highlighting in $(shell ...) expression

Package:
vim
Source:
vim
Description:
Vi IMproved - enhanced vi editor
Submitter:
Alejandro Colomar
Date:
2021-04-16 17:06:04 UTC
Severity:
minor
#987060#5
Date:
2021-04-16 17:02:04 UTC
From:
To:
Dear Maintainer,

I have the following in a Makefile:

base_branch	= $(shell echo 'origin/develop origin/release/* origin/master' \
			| xargs git branch -a -l \
			| while read b; do \
				d1="$$(git rev-list --first-parent ^$$b HEAD | wc -l)"; \
				d2="$$(git rev-list --first-parent ^HEAD $$b | wc -l)"; \
				echo "$$b $$d1 $$d2"; \
			done \
			| sort -n -k2 -k3 \
			| head -n1 \
			| awk '{print $$1}' \
			| sed -e 's,remotes/,,' -e 's,origin/,,';)

bb:
	echo $(base_branch);

It is correct make syntax, AFAIK, and it works as expected, printing the
closest parent branch with a specified pattern, but the highlighting considers
the first closing parenthesis (at the end of the line starting with 'd1')
as the end of the $(shell ...) expression, so the rest of the expression
is wrongly colored.

Could you please fix it?  Or tell me how to fix it? :)

Thanks,

Alex
--- real paths of main Vim binaries ---
/usr/bin/vi is /usr/bin/vim.basic
/usr/bin/vim is /usr/bin/vim.basic