From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#67730: [PATCH] Add font-locking for shebangs in js-ts-mode and typescript-ts-mode Date: Sun, 10 Dec 2023 04:53:13 +0200 Message-ID: <0fb4ab6e-4c89-f303-252a-97350fdfeae9@gutov.dev> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22216"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 To: Noah Peart , 67730-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 10 03:54:08 2023 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 1rC9xG-0005cj-S6 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Dec 2023 03:54:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rC9x0-0003kS-KT; Sat, 09 Dec 2023 21:53:50 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rC9wy-0003jy-QE for bug-gnu-emacs@gnu.org; Sat, 09 Dec 2023 21:53:48 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rC9wy-0005wO-Hb for bug-gnu-emacs@gnu.org; Sat, 09 Dec 2023 21:53:48 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rC9xC-0007mv-D5 for bug-gnu-emacs@gnu.org; Sat, 09 Dec 2023 21:54:02 -0500 Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Dec 2023 02:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 67730 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Mail-Followup-To: 67730@debbugs.gnu.org, dmitry@gutov.dev, noah.v.peart@gmail.com Original-Received: via spool by 67730-done@debbugs.gnu.org id=D67730.170217681829901 (code D ref 67730); Sun, 10 Dec 2023 02:54:02 +0000 Original-Received: (at 67730-done) by debbugs.gnu.org; 10 Dec 2023 02:53:38 +0000 Original-Received: from localhost ([127.0.0.1]:49252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rC9wo-0007mD-7K for submit@debbugs.gnu.org; Sat, 09 Dec 2023 21:53:38 -0500 Original-Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:55607) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rC9wm-0007m0-CX for 67730-done@debbugs.gnu.org; Sat, 09 Dec 2023 21:53:37 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id B07D33200A17; Sat, 9 Dec 2023 21:53:16 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sat, 09 Dec 2023 21:53:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1702176796; x=1702263196; bh=VASXYk396R4+YQ53hHQb3WJ0aL5n5oziNEP irn/DSm0=; b=wgSuiyGN0cGnK2asLJsX9XCHpmXIlxHDoUzPIUPO1C3J2iPrEpH WUMjFPZ1Iom4v23qxF6rVup5tCC1Gb+m6FHSapKBQ/BM5mfpMO1VIGRctajpHUtR b+2gB7RmaoUMhHQSyq25SHXKm8/jWeCd+yLX8wQ6hox9Sonqk2jzXmHZzc3GU0HY Ugv5TPUWAMyGc56a3gvZgYkTtPRMDePfSl1NVOOW+yToRTZEKaYJPGoNFLflwoNf 2mvPH9EpGSJhyxht1Vo1VRZPKDSGFw1IQZvGgvxigu9mEEWv+zp8/a9oJwFj/RJX 4rvlhjUwo++eFt/i3eAGGYLl2CZtf/FqfVg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1702176796; x= 1702263196; bh=VASXYk396R4+YQ53hHQb3WJ0aL5n5oziNEPirn/DSm0=; b=u 5qFQ3XKq1QT3biBGNYLNlioXxFiczvExRO99L1RAvEDwHda3xbMBlFowCV+q+Yy1 ygs9Ma++HTqXfAxGx6a9RYBuaJCr1lDo/gTFEZ3xsZ/8nwYrua30AJteVrlgmcnr ZzQN13roL55agi297fIj3Y+wmXycRdtTyg0X8hbrdQ0z+kpu9h3ETaACpxb15P0v Au4gFxLvhZzlQo3quSGKEvlCvBXpHMiWbeFho0txnRS+I2oNAc14A79DysCdxmL8 15DUUGq+vLYCWUN7tFdLEQ1hWiibCGebBZhau2fMdFpA4wxSc/OMyq0K467ye0kb AJOzFWZQfr4I21FBnZQSQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudekledgheduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeefjeekvedvfeelfedufeevgeetvdevkeelvddtueetteefudefgfduieekffei leenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 9 Dec 2023 21:53:15 -0500 (EST) Content-Language: en-US In-Reply-To: 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:275891 Archived-At: Version: 29.2 On 09/12/2023 21:44, Noah Peart wrote: > Tags: patch > > > * Bug: `js-ts-mode` and `typescript-ts-mode` are missing font-locking > rules for hashbang lines. > > Recipe to reproduce: > Open a buffer and insert > >     #!/usr/bin/env node > > Run `M-x js-ts-mode` and `M-x typescript-ts-mode` to see no font-locking > is applied to the hash bang line. Thanks! Installed. Note that both commit messages exceeded the allowed 78, so I had to amend them by hand.