From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#13241: 24.2; sh-mode, bash, font-lock; highlight variables in expressions: (( var )) Date: Tue, 10 May 2022 15:28:37 +0200 Message-ID: <87mtfph5yy.fsf@gnus.org> References: <87txrgbxgg.fsf@kelebek.i-did-not-set--mail-host-address--so-tickle-me> <87ilqdinbm.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27728"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 13241@debbugs.gnu.org To: Daniel Lublin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 10 15:29:58 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1noPw3-0006tQ-3b for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 May 2022 15:29:55 +0200 Original-Received: from localhost ([::1]:52136 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1noPw1-0000Q6-Ml for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 May 2022 09:29:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noPvE-0007Yn-3V for bug-gnu-emacs@gnu.org; Tue, 10 May 2022 09:29:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38607) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1noPvC-0006ua-63 for bug-gnu-emacs@gnu.org; Tue, 10 May 2022 09:29:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1noPvC-0005wc-2g for bug-gnu-emacs@gnu.org; Tue, 10 May 2022 09:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 May 2022 13:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 13241-submit@debbugs.gnu.org id=B13241.165218932822808 (code B ref 13241); Tue, 10 May 2022 13:29:02 +0000 Original-Received: (at 13241) by debbugs.gnu.org; 10 May 2022 13:28:48 +0000 Original-Received: from localhost ([127.0.0.1]:60731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noPux-0005vo-Tm for submit@debbugs.gnu.org; Tue, 10 May 2022 09:28:48 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:55174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noPuv-0005vX-Ui for 13241@debbugs.gnu.org; Tue, 10 May 2022 09:28:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=uUxI51JKG/4r1iY2n1PetNPG1cpDGCDt0r+wA7wpbQA=; b=ZGG1/5fvTw4FQAo0DcJzyKyDrE e63mwPr3lt3Ggk5+RhijnNRMqHbpWwaqa/y37LRCWYYSuPdLej0noKJ5ydqd/M59uvnSVYD6K6eAs xh+Xa6+SShvBECKsG//Qa78HIK94jdy2677baTn7fLlgSNzHOOtJxbFB6bOD0JNU4mRU=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1noPun-0003xR-MQ; Tue, 10 May 2022 15:28:39 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEXu5ODBtayKf3Iv KBsKCQZZT0D///9OA1bqAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+YFCg0aNtzbwToAAAG5SURBVDjL nZTPksIgDMbBWe8Et/eW2vta4AGUeF9Lef9X2RCgrTOeNv4dfn7Jl4RRiP8GqPyQAP/OsIU06uP5 yeHzI/hCxJ9P4Ergo+SqCB2rNNujEA5/j15q7QDigvf2a1B6Ll+7JwjpWhGjoXtVMLMBTgLSmGHU JeMwKiVWrg5aJwpdLVx7ISfOq42OKXkuLntxhUEMxc6gJ6OtLwK53sjAPq4yfpqfxpCo9zC8dd2l Xo5YYlFNwmQQ5wpwbsn4bUyugeNcFukwbOS5DVG6FbFfN0nfXJ2o8ENtRcooc3F5QXzRbN9zEVDf pOj26tu+8u58Ko2wh83Xil6ryOc2g1tbrcO5W7KrOaWItlanZ7CLWbRKUQnorMdXVZxCGnrTLt4U A6+LwBmt6VO7LnLNADKgDmyydRcSHB4AhuCNMSlNkdwp2EEOG8tnAA7uj899iraOZAfWehstlQo0 HpmHmy8gA+sdvbLmUVOdSiKSUFDnpCiAF+Hyjylu5OQuD4pQBFZFh/eaCkYGLLCAuwIu7LUAj3sN +M5gKiA7fEr6j2jgNsZ2njtXrcEAMVcnyDtXpfM13wUWvIE/JvCD9CjSHecAAAAldEVYdGRhdGU6 Y3JlYXRlADIwMjItMDUtMTBUMTM6MjY6NTQrMDA6MDBS+IfCAAAAJXRFWHRkYXRlOm1vZGlmeQAy MDIyLTA1LTEwVDEzOjI2OjU0KzAwOjAwI6U/fgAAAABJRU5ErkJggg== X-Now-Playing: Joni Mitchell's _Hejira_: "Refuge Of The Roads" In-Reply-To: (Daniel Lublin's message of "Tue, 10 May 2022 15:06:58 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:231839 Archived-At: Daniel Lublin 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