Package: emacs-common
Version: 1:26.1+1-3.3
Severity: minor
Tags: upstream
Forwarded: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=11264

The Shell-script[zsh] mode has some highlighting issues (other
variants too). For instance,

if [[ x == x ]] then
  echo OK
fi

if [[ x == x ]]; then
  echo OK
fi

"then" is highlighted in the second case, but not in the first one
(while this is valid in zsh).

It seems that something that precedes a "=" character, possibly with
spaces between will be highlighted. There is no reason for that. This
is not an assignment.

Examples:

true a = b
a = b

where "a" is highlighted (in the second case, this is the command "a"
with the arguments "=" and "b", still not an assignment).

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.2.0-2-amd64 (SMP w/12 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=POSIX 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages emacs-common depends on:
ii  emacsen-common  3.0.4
ii  install-info    6.6.0.dfsg.1-2

Versions of packages emacs-common recommends:
ii  emacs-el  1:26.1+1-3.3

Versions of packages emacs-common suggests:
ii  emacs-common-non-dfsg  1:26.1+1-1
ii  ncurses-term           6.1+20190803-1

-- no debconf information

-- 
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to