Package: vim
Version: 2:8.2.2434-3
Severity: minor
X-Debbugs-Cc: alx.manpa...@gmail.com

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

-- Package-specific info:

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

-- System Information:
Debian Release: 11.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-6-amd64 (SMP w/12 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages vim depends on:
ii  libacl1      2.2.53-10
ii  libc6        2.31-11
ii  libgpm2      1.20.7-8
ii  libselinux1  3.1-3
ii  libtinfo6    6.2+20201114-2
ii  vim-common   2:8.2.2434-3
ii  vim-runtime  2:8.2.2434-3

vim recommends no packages.

Versions of packages vim suggests:
pn  ctags        <none>
pn  vim-doc      <none>
pn  vim-scripts  <none>

-- no debconf information

Reply via email to