From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Trevor Arjeski Newsgroups: gmane.emacs.bugs Subject: bug#74277: 29.4; rust-ts-mode doesn't highlight some function calls Date: Tue, 19 Nov 2024 23:48:24 +0300 Message-ID: <87r077kl0n.fsf@gmail.com> References: <86bjyookld.fsf@gnu.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="1851"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Yuan Fu , Eli Zaretskii , 74277@debbugs.gnu.org, acidbong@tilde.club To: Randy Taylor Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 19 21:50:28 2024 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 1tDVB5-0000JU-QE for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Nov 2024 21:50:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tDVAm-0000Rz-GJ; Tue, 19 Nov 2024 15:50:08 -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 1tDVAj-0000Ro-RX for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2024 15:50:05 -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 1tDVAj-0001SV-08 for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2024 15:50:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=GL++9O724ohRFlTk6w9Az+yyYtmFKswMBhfuKBeTZUI=; b=QHWN3/7HCw+iC2ozeKyf27yrNeTCvYlZ4JbyNFwf37Aqiig/eZO0gInv1O5qXCYlfbT846mdqJz+4fWOnTGhkoPrOaf2C/t/L4iY8YrnlZ8d7zcCjURaNpWxDiDGqiSoOLQcRTd4ZqbTDRN1nOsAeUBwjRPuFge4JRcNEzI2Fkg9DLqrm1ANk3TrAp+GTnnyk0VK77hFT79WBENN1EYyWqjiWQvlTmGBo/IcHGJYKi8LA68fJaZuI1VRx7Qb8qkbOryNcg+4HsOXv8hLsq7iKiA4Ym0RtE1F4Ur0hR45cDGyRBOWarVrSh87J3JpDTKzy3/CKGNKEAHZ7BYn+6iy3Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tDVAi-0000wz-NW for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2024 15:50:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Trevor Arjeski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Nov 2024 20:50:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74277 X-GNU-PR-Package: emacs Original-Received: via spool by 74277-submit@debbugs.gnu.org id=B74277.17320493763595 (code B ref 74277); Tue, 19 Nov 2024 20:50:04 +0000 Original-Received: (at 74277) by debbugs.gnu.org; 19 Nov 2024 20:49:36 +0000 Original-Received: from localhost ([127.0.0.1]:44212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDVAF-0000vv-Vp for submit@debbugs.gnu.org; Tue, 19 Nov 2024 15:49:36 -0500 Original-Received: from mail-lf1-f54.google.com ([209.85.167.54]:48428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDVAE-0000ve-7S for 74277@debbugs.gnu.org; Tue, 19 Nov 2024 15:49:34 -0500 Original-Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-539f76a6f0dso4660961e87.1 for <74277@debbugs.gnu.org>; Tue, 19 Nov 2024 12:49:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732049308; x=1732654108; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=GL++9O724ohRFlTk6w9Az+yyYtmFKswMBhfuKBeTZUI=; b=nMmVYZIH8Tm20PoGpZEgVcMj5D3Ke+tfbI5T2e+v++O7F0C3zxs+luR8yXQOy23ab9 W6ldOgjONPotE4DI7w3U5bSYNIOFApADAMHgGFbO2MBXldm2B/NNyN6CghYcPL4snNyF qumaYLWPRuFmpqLt+TcsF+F/Pq6M+1T+r2mQkNLv0Fptl4LSYZJ0W8INWgRVH2a9Y3uA zJHDGSaxCfzwxX1m/kWz1l/fcrHOPpphc4vXa5Hic8F//EJq5fSOOzuqg/pXnqVo4LaB ieDgU+nT+pYcYDa0OTJGVa2T5Yy+crCXQS1CMQLZ7vMvQTlJMx6ojLJ73LFZ4k4vNgqp z4lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732049308; x=1732654108; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=GL++9O724ohRFlTk6w9Az+yyYtmFKswMBhfuKBeTZUI=; b=BiBUEz0N7+VQF/GUpP3VZDHSz61m3v6KDPNBUv0QnrEDh+S1MoaeICjAjVL4AKXJ/v fZ3EHhAICkBhIRH0muntMbV8jwD3D4HUTBlFeGbwjGSBKPBdEbarZFkpGgyYHSBDyxNn XTag0TGxBK5DFoglnzlflIP+mpsxPasyrtub3NUR1kn84ZEBdhG3aS/8mzUxJOWmGDY7 UETexKF+ivyTanndOnCGvvkyhR+4ULoHVrQulvJv4N+eQG6L4oF9ks+txG1FEO/5+oDX rqO6j+NRr7KtwL5Bx7FWvlNBUhUvEbk+75M5aP/HSBqiYr0e6WfS7YOt8X1DDvjof+X0 N7YQ== X-Forwarded-Encrypted: i=1; AJvYcCU1DwLC/wZ8KCqjvS0u++d6/o3lgwY74PXSG8V3o55ooVmr/ZPMAiIlWD0BcdAtBIlGGSnJFg==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyZtb9vqlIMXPZ9DBEj42p1VtmSsG4k58/rSPqM0heijVD59J3i o1EOKNCpkdpTxLU48qDUQs+fss+2GT+a3tj4tXHXCjur1GCW9Yci X-Google-Smtp-Source: AGHT+IFxwR5h2RIldWNR0wEKTiki6qKjiZeInI4HPD5YZW304V6NySWW+Mh/qtj7+5+rNsgZs738MQ== X-Received: by 2002:a05:6512:23aa:b0:53a:40e:d54f with SMTP id 2adb3069b0e04-53dc1323560mr37471e87.8.1732049307713; Tue, 19 Nov 2024 12:48:27 -0800 (PST) Original-Received: from localhost (109-252-36-249.nat.spd-mgts.ru. [109.252.36.249]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53dbd46729esm402117e87.151.2024.11.19.12.48.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Nov 2024 12:48:26 -0800 (PST) In-Reply-To: (Randy Taylor's message of "Sun, 10 Nov 2024 21:10:35 +0000") 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:295661 Archived-At: Randy Taylor writes: Hi all, randomly started looking into this... > This was discussed briefly awhile back, but it's basically going to > require special handling because macro invocations don't give us the > usual dead simple way of doing it. Is this due to lack of support for injections.scm in Emacs' treesitter implementation? http://tree-sitter.github.io/tree-sitter/syntax-highlighting#language-injection Can't seem to find any traces of that in the current source. >From inspecting this line of code in Neovim, it appears that the injection on macro_invocation is what forces parsing the macro params as another source_file.