From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: acidbong--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74277: 29.4; rust-ts-mode doesn't highlight some function calls Date: Fri, 08 Nov 2024 20:24:07 +0000 Message-ID: Reply-To: acidbong@tilde.club Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19637"; mail-complaints-to="usenet@ciao.gmane.io" To: 74277@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 09 09:22:26 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 1t9gjh-0004wq-34 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Nov 2024 09:22:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9gjN-0005YO-0H; Sat, 09 Nov 2024 03:22:05 -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 1t9gjK-0005Wq-S5 for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2024 03:22:02 -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 1t9gjK-0003XY-Jw for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2024 03:22:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=From:Date:MIME-Version:To:Subject; bh=mPYVfTtQc+D+Kfc6aFnoNeLJYwJ2SV6dV4JjqzExMII=; b=joCZdlc/SQlMAJqom02exm2HbMLp8y6SNm2rLnE/iWIXC11qheDuNCUpztpPoEWuAUWNBPDDVBKFbAFiQvebe6n5CQ7o2JQCb/mljBPCedK/xXP8uOw4WkdXHKQl8rx9MLScRvfF7l+fZ8yED2pZKnB7OaRw0VvK/NwRaQua6FGJ5czPcfRG0pjBhevmffXdOCQdQ3WynMz/LgVlTK5n36QPlo8IiioM0zMZlNuElLXr13fZ1B1tCNmJxwXGB2CRQ7AvTxgM2pgUyMtLynmrtkccbm3WaXOPT003pDoWajUWBtHTYXLGfEzzL/oY73GDk9oBMDGieuNcDFA9+dAfRQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t9gjK-0007Xo-EK for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2024 03:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: acidbong@tilde.club Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Nov 2024 08:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74277 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.173114048428948 (code B ref -1); Sat, 09 Nov 2024 08:22:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Nov 2024 08:21:24 +0000 Original-Received: from localhost ([127.0.0.1]:53283 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t9gif-0007Wl-Ie for submit@debbugs.gnu.org; Sat, 09 Nov 2024 03:21:24 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:59486) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t9VWg-0000f7-Th for submit@debbugs.gnu.org; Fri, 08 Nov 2024 15:24:17 -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 1t9VWf-0001WX-Ua for bug-gnu-emacs@gnu.org; Fri, 08 Nov 2024 15:24:14 -0500 Original-Received: from tilde.club ([142.44.150.184]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t9VWc-0001so-Eh for bug-gnu-emacs@gnu.org; Fri, 08 Nov 2024 15:24:12 -0500 Original-Received: from webmail.tilde.club (tilde.club [IPv6:2607:5300:203:b92b::115]) by tilde.club (Postfix) with ESMTPSA id A917E2209E0D7 for ; Fri, 8 Nov 2024 20:24:07 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 tilde.club A917E2209E0D7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tilde.club; s=mail; t=1731097447; bh=mPYVfTtQc+D+Kfc6aFnoNeLJYwJ2SV6dV4JjqzExMII=; h=Date:From:Subject:To:From; b=ERYVrZjLqzFoik2ANdr/X3UY1cePZhNFZ3t+5L+5tVIZyAFAL5cDV3TOK2sQnJ5kV MFGyrOwHjmOGoZ0W4jdrsAqN4vLG8PYRIf5rD9gO5MbxcP41+3rZCDraGS8F30Xzua 5pr/LUUvBmvZFqfGXCxUzg6PhM3lTK4PejaKNS0k= TLS-Required: No Received-SPF: pass client-ip=142.44.150.184; envelope-from=acidbong@tilde.club; helo=tilde.club X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 09 Nov 2024 03:21:20 -0500 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:295100 Archived-At: rust-ts-mode highlights function calls when they're used in an assignment or as statements, but not in string formatting: ``` println!("Some line and {}", some_function(a, b)) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 # ^^^^^^^^^^^^^ this is not getting highlighted ``` This is how it looks in Emacs (treesit-level is 4 btw): https://matrix.envs.net/_matrix/media/r0/download/envs.net/66652827fc7545= e57d2eef263ee28ef6bc2ef1c01854976160883015680 This is how it looks in Neovim (with treesitter highlighting on): https://matrix.envs.net/_matrix/media/r0/download/envs.net/382a104ee3e6e4= dacabebfa7f84f4b9b7231b1171854976151936565248 ----------------------------------- In GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.2, Xaw3d scroll bars) Windowing system distributor 'The X.Org Foundation', version 11.0.1210101= 3 System Description: NixOS 24.11 (Vicuna) Configured using: 'configure --prefix=3D/nix/store/fsglyaxfhlavaskr159b4yyjlajy4qq5-emacs-29.4 --disable-build-details --with-modules --with-x-toolkit=3Dlucid --with-cairo --with-xft --with-compress-install --with-toolkit-scroll-bars --with-native-compilation --without-imagemagick --with-mailutils --without-small-ja-dic --with-tree-sitter --with-xinput2 --without-xwidgets --with-dbus --with-selinux' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XAW3D XDBE XIM XINPUT2 XPM LUCID ZLIB Important settings: =C2=A0 value of $EMACSLOADPATH:=C2=A0 =C2=A0 value of $EMACSNATIVELOADPATH:=C2=A0 =C2=A0 value of $LANG: ru_RU.UTF-8 =C2=A0 locale-coding-system: utf-8-unix Major mode: Rust Minor modes in effect: =C2=A0 consult-eglot-embark-mode: t =C2=A0 eglot-inlay-hints-mode: t =C2=A0 eglot--managed-mode: t =C2=A0 flymake-mode: t =C2=A0 server-mode: t =C2=A0 display-line-numbers-mode: t =C2=A0 rainbow-mode: t =C2=A0 corfu-popupinfo-mode: t =C2=A0 corfu-history-mode: t =C2=A0 corfu-mode: t =C2=A0 doom-modeline-mode: t =C2=A0 nerd-icons-completion-mode: t =C2=A0 marginalia-mode: t =C2=A0 vertico-mode: t =C2=A0 global-treesit-auto-mode: t =C2=A0 diff-hl-flydiff-mode: t =C2=A0 global-diff-hl-mode: t =C2=A0 diff-hl-mode: t =C2=A0 ws-butler-global-mode: t =C2=A0 ws-butler-mode: t =C2=A0 direnv-mode: t =C2=A0 global-ligature-mode: t =C2=A0 ligature-mode: t =C2=A0 which-key-mode: t =C2=A0 meow-global-mode: t =C2=A0 meow-mode: t =C2=A0 meow-normal-mode: t =C2=A0 meow-esc-mode: t =C2=A0 override-global-mode: t =C2=A0 delete-selection-mode: t =C2=A0 global-auto-revert-mode: t =C2=A0 recentf-mode: t =C2=A0 save-place-mode: t =C2=A0 savehist-mode: t =C2=A0 global-hl-line-mode: t =C2=A0 electric-pair-mode: t =C2=A0 global-eldoc-mode: t =C2=A0 eldoc-mode: t =C2=A0 show-paren-mode: t =C2=A0 electric-indent-mode: t =C2=A0 mouse-wheel-mode: t =C2=A0 file-name-shadow-mode: t =C2=A0 global-font-lock-mode: t =C2=A0 font-lock-mode: t =C2=A0 blink-cursor-mode: t =C2=A0 size-indication-mode: t =C2=A0 column-number-mode: t =C2=A0 line-number-mode: t =C2=A0 global-visual-line-mode: t =C2=A0 visual-line-mode: t =C2=A0 transient-mark-mode: t =C2=A0 auto-composition-mode: t =C2=A0 auto-encryption-mode: t =C2=A0 auto-compression-mode: t Load-path shadows: /nix/store/qm7zdj12cb53nm3lvyh7pmf9kzfbz613-emacs-packages-deps/share/ema= cs/site-lisp/site-start hides /nix/store/fsglyaxfhlavaskr159b4yyjlajy4qq5= -emacs-29.4/share/emacs/site-lisp/site-start /nix/store/qm7zdj12cb53nm3lvyh7pmf9kzfbz613-emacs-packages-deps/share/ema= cs/site-lisp/elpa/transient-20241104.2211/transient hides /nix/store/fsgl= yaxfhlavaskr159b4yyjlajy4qq5-emacs-29.4/share/emacs/29.4/lisp/transient /nix/store/qm7zdj12cb53nm3lvyh7pmf9kzfbz613-emacs-packages-deps/share/ema= cs/site-lisp/elpa/seq-2.24/seq hides /nix/store/fsglyaxfhlavaskr159b4yyjl= ajy4qq5-emacs-29.4/share/emacs/29.4/lisp/emacs-lisp/seq Features: (edmacro shadow sort mail-extr emacsbug consult-eglot-embark consult-eglot consult-eglot-embark-autoloads consult-eglot-autoloads loaddefs-gen lisp-mnt radix-tree tar-mode arc-mode archive-mode mm-archive message sendmail yank-media rfc822 mml mml-sec epa derived epg rfc6068 gnus-util mailabbrev gmm-utils mailheader mm-decode mm-bodies mm-encode epg-config mail-utils gnutls network-stream url-cache url-http url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm puny cus-edit cus-start cus-load descr-text embark-consult consult bookmark eglot external-completion jsonrpc ert debug backtrace xref flymake-proc flymake imenu vc-git rust-ts-mode c-ts-common misearch multi-isearch dabbrev cape-char pp mule-util face-remap embark-org org-element org-persist xdg org-id org-refile avl-tree generator embark ffap thingatpt project pulse server display-line-numbers rainbow-mode corfu-popupinfo corfu-history nerd-icons-corfu corfu doom-modeline doom-modeline-segments doom-modeline-env doom-modeline-core shrink-path f s org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete pcomplete org-list org-footnote org-faces org-entities time-date noutline outline ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs find-func cal-menu calendar cal-loaddefs org-version org-compat org-macs format-spec cape nerd-icons-completion marginalia vertico orderless compat compat-30 treesit-auto treesit meson-mode smie compile text-property-search comint ansi-osc ansi-color ring diff-hl-dired dired dired-loaddefs diff-hl-flydiff diff diff-hl log-view pcvs-util vc-dir ewoc vc vc-dispatcher ws-butler direnv diff-mode dash ligature nerd-icons nerd-icons-faces nerd-icons-data nerd-icons-data-mdicon nerd-icons-data-flicon nerd-icons-data-codicon nerd-icons-data-devicon nerd-icons-data-sucicon nerd-icons-data-wicon nerd-icons-data-faicon nerd-icons-data-powerline nerd-icons-data-octicon nerd-icons-data-pomicon nerd-icons-data-ipsicon doom-themes-ext-org doom-gruvbox-theme doom-themes doom-themes-base which-key meow meow-tutor meow-cheatsheet meow-cheatsheet-layout meow-core meow-shims meow-esc meow-command array meow-beacon kmacro meow-thing meow-visual meow-keypad meow-helpers meow-util color meow-keymap meow-face meow-var bind-key easy-mmode comp comp-cstr warnings icons cl-extra help-mode delsel autorevert filenotify recentf tree-widget wid-edit saveplace savehist hl-line elec-pair use-package-ensure use-package-core finder-inf consult-project-extra-autoloads cue-sheet-mode-autoloads rx inputrc-mode-autoloads ws-butler-autoloads cape-autoloads corfu-autoloads diff-hl-autoloads direnv-autoloads doom-modeline-autoloads doom-themes-autoloads embark-consult-autoloads consult-autoloads embark-autoloads ligature-autoloads magit-autoloads pcase magit-section-autoloads marginalia-autoloads meow-autoloads meson-mode-autoloads nerd-icons-completion-autoloads nerd-icons-corfu-autoloads nerd-icons-dired-autoloads nerd-icons-autoloads nix-ts-mode-autoloads orderless-autoloads rainbow-mode-autoloads shrink-path-autoloads f-autoloads dash-autoloads s-autoloads transient-autoloads treesit-auto-autoloads vertico-autoloads which-key-autoloads with-editor-autoloads info compat-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib cyril-util rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo x-toolkit xinput2 x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 638926 185590) (symbols 48 47388 5) (strings 32 264344 60226) (string-bytes 1 7396023) (vectors 16 62210) (vector-slots 8 1620783 87746) (floats 8 820 424) (intervals 56 1600 2497) (buffers 984 28))