unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#13241: 24.2; sh-mode, bash, font-lock; highlight variables in expressions: (( var ))
@ 2012-12-20 14:38 quite
  2022-05-10 12:28 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: quite @ 2012-12-20 14:38 UTC (permalink / raw)
  To: 13241

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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#13241: 24.2; sh-mode, bash, font-lock; highlight variables in expressions: (( var ))
  2012-12-20 14:38 bug#13241: 24.2; sh-mode, bash, font-lock; highlight variables in expressions: (( var )) quite
@ 2022-05-10 12:28 ` Lars Ingebrigtsen
  2022-05-10 13:06   ` Daniel Lublin
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2022-05-10 12:28 UTC (permalink / raw)
  To: quite; +Cc: 13241

quite@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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#13241: 24.2; sh-mode, bash, font-lock; highlight variables in expressions: (( var ))
  2022-05-10 12:28 ` Lars Ingebrigtsen
@ 2022-05-10 13:06   ` Daniel Lublin
  2022-05-10 13:28     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Lublin @ 2022-05-10 13:06 UTC (permalink / raw)
  To: 13241; +Cc: Lars Ingebrigtsen

 > 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.
 





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#13241: 24.2; sh-mode, bash, font-lock; highlight variables in expressions: (( var ))
  2022-05-10 13:06   ` Daniel Lublin
@ 2022-05-10 13:28     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2022-05-10 13:28 UTC (permalink / raw)
  To: Daniel Lublin; +Cc: 13241

Daniel Lublin <daniel@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





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-05-10 13:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-20 14:38 bug#13241: 24.2; sh-mode, bash, font-lock; highlight variables in expressions: (( var )) quite
2022-05-10 12:28 ` Lars Ingebrigtsen
2022-05-10 13:06   ` Daniel Lublin
2022-05-10 13:28     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).