GNU bug report logs - #13241
24.2; sh-mode, bash, font-lock; highlight variables in expressions: (( var ))

Previous Next

Package: emacs;

Reported by: quite <at> hack.org

Date: Thu, 20 Dec 2012 16:47:01 UTC

Severity: normal

Merged with 57182

Found in versions 24.2, 28.1

Full log


Message #16 received at 13241 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Daniel Lublin <daniel <at> lublin.se>
Cc: 13241 <at> debbugs.gnu.org
Subject: Re: bug#13241: 24.2; sh-mode, bash, font-lock; highlight variables
 in expressions: (( var ))
Date: Tue, 10 May 2022 15:28:37 +0200
Daniel Lublin <daniel <at> lublin.se> writes:

>  > I don't quite understand the request -- sh-mode doesn't font-lock
>  > variables in other cases, so I don't quite see why it should font-lock
>  > variables inside (( )) constructs?
>
>  But it does? At least in `foo=bar` `foo` gets the
>  font-lock-variable-name-face. At least to my understanding of "font-lock".

Sorry, don't know what I was thinking.

When $var++ is highlighted, then $(( var++ )) should be, too.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 2 years and 304 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.