[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#13241: 24.2; sh-mode, bash, font-lock; highlight variables in expres
From: |
Lars Ingebrigtsen |
Subject: |
bug#13241: 24.2; sh-mode, bash, font-lock; highlight variables in expressions: (( var )) |
Date: |
Tue, 10 May 2022 15:28:37 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
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