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

To reply to this bug, email your comments to 13241 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#13241; Package emacs. (Thu, 20 Dec 2012 16:47:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to quite <at> hack.org:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 20 Dec 2012 16:47:02 GMT) Full text and rfc822 format available.

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

From: quite <at> hack.org
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2; sh-mode, bash, font-lock;
	highlight variables in expressions: (( var ))
Date: Thu, 20 Dec 2012 15:38:23 +0100
Feature request: make the sh-mode font-lock mode propertly highlight 
variables used in expression, such as:  (( var > 42 ))  $(( var++ ))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13241; Package emacs. (Tue, 10 May 2022 12:29:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: quite <at> hack.org
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 14:28:29 +0200
quite <at> hack.org writes:

> Feature request: make the sh-mode font-lock mode propertly highlight 
> variables used in expression, such as:  (( var > 42 ))  $(( var++ ))

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

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?

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




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 10 May 2022 12:29:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13241; Package emacs. (Tue, 10 May 2022 13:08:01 GMT) Full text and rfc822 format available.

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

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

 But, I'm no really bothered by this, and wouldn't mind the issue being
 closed.
 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13241; Package emacs. (Tue, 10 May 2022 13:29:02 GMT) Full text and rfc822 format available.

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




Removed tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 09 Jun 2022 14:43:03 GMT) Full text and rfc822 format available.

Forcibly Merged 13241 57182. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 15 Aug 2022 07:40:02 GMT) Full text and rfc822 format available.

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

Previous Next


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