X-Loop: help-debbugs@HIDDEN Subject: bug#59435: 29.0.50; tree-sitter fails to fontify or indent simple function Resent-From: Po Lu <luangruo@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 21 Nov 2022 06:11:01 +0000 Resent-Message-ID: <handler.59435.B.166901100312451 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 59435 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 59435 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.166901100312451 (code B ref -1); Mon, 21 Nov 2022 06:11:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Nov 2022 06:10:03 +0000 Received: from localhost ([127.0.0.1]:45137 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ox00J-0003Ek-8a for submit <at> debbugs.gnu.org; Mon, 21 Nov 2022 01:10:03 -0500 Received: from lists.gnu.org ([209.51.188.17]:51582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <luangruo@HIDDEN>) id 1ox00E-0003E4-O7 for submit <at> debbugs.gnu.org; Mon, 21 Nov 2022 01:10:01 -0500 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 <luangruo@HIDDEN>) id 1ox00E-0006wm-Hr for bug-gnu-emacs@HIDDEN; Mon, 21 Nov 2022 01:09:58 -0500 Received: from sonic311-25.consmr.mail.ne1.yahoo.com ([66.163.188.206]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <luangruo@HIDDEN>) id 1ox00B-0002CR-N4 for bug-gnu-emacs@HIDDEN; Mon, 21 Nov 2022 01:09:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1669010991; bh=l7tCY0riJ/yzgGZMH5oe1VlkXSjDSrIAJd6m1Nwmamg=; h=From:To:Subject:Date:References:From:Subject:Reply-To; b=ICQVkKbg0Ho7+6jsR52RHyPDDMN/uoVTgZLE5CHU/jwy9BJDnhbO8IOJIeUGN+W05IqLcVxUuCN3akAt7Hm9pF0iPLdHhCmE52FJX4EsgnvecCwY3TM8DgbqMCG15dmPtwemEwSJc44Yxqtf6Hhlmrux00+nCw4zUT/j0+CWiRMfeb7pgy1kOQIyYSwjGAwuGWv61kAGS4FEjl3jOjgZv3nqSaEiuc/LydEuc99Z4rt7vKAF3z7qc0b9CS/h/o2OjM4gUZAITw9Z9wlfvMd+dUTKbcPMh0VVQBKVpwTeoxeIHWMognMft1ubU5psAd3lnRojN3QJ2Ve4aZKfxR7vpw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1669010991; bh=01/5lcNcNXwp+Ticmg2l/eZ/8+6XBeHxnN3sVGhOBbr=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=QB9/wZ5wNKkZ+eoVzTMfCUQA5v+LhJDl+up1+ieaFJFYWJyUv/oWPJ5Kmy1WxBzjg70TRzY19GH6h5VoW2blEltN+qluseKKac2gQ952qXb02YImvO3pN8AXROG6RBhppHUtH3ljvNdE0Hk7wpIZHxab8Zpv38OUh7xI1LyuvL/MGFFK+x+JASgjUJNtmaQWWqEYW0vUVf502zgp04pxV7vdULSdgaHEDGIZx+CdiuQj3Sq1R+xUgXI+6ghLCpcTFhwHEjBXqA3Z28qLsKpYkss6wGvJO4LK4Ry7YN4CtpcJAWhdS96kWsn8zwca1YJ+9bSWFPOFm8JmhzJXPOwcpA== X-YMail-OSG: D6G.T18VM1lcDDKpWkmhjpAh9AHF2V9Nyn9VUyP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u0YA8ur M6jrpB3mfPt49pH8iYx5FHVm6ofYD9UDfCDTvtijoBQMzskGPnM.esh4BocRNPFG1vy1N_Ac98h. jWOkhol.ARmEq2OKmDCZTCmtxXMgAcjjYtzm4a7KQB9f3Oa0AOx8X X-Sonic-MF: <luangruo@HIDDEN> Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Mon, 21 Nov 2022 06:09:51 +0000 Received: by hermes--production-sg3-6c8895b545-fzfcs (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 7dee213e473df0b979a35db363de095b; Mon, 21 Nov 2022 06:09:49 +0000 (UTC) From: Po Lu <luangruo@HIDDEN> Date: Mon, 21 Nov 2022 14:09:43 +0800 Message-ID: <871qpw7s9k.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain References: <871qpw7s9k.fsf.ref@HIDDEN> X-Mailer: WebService/1.1.20863 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 1479 Received-SPF: pass client-ip=66.163.188.206; envelope-from=luangruo@HIDDEN; helo=sonic311-25.consmr.mail.ne1.yahoo.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.6 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.6 (-) c-ts-mode cannot fontify the following code: ifsubmitbufl (tp) { register *kb1 = tp; extern tbase, i_len; register l = len; again: highprio (); /* tbase is used by protoureg */ iomap (&UBR, tbase += UBR_SIZ); UBR->addr_l = kb1; UBR->addr_m = kb1 >> 010; UBR->mode_l = 07777 &~ UBR_INST; UBR->mode_m = 0; UBR->long_l = l; UBR->long_m = l >> 010; iounmap (); tally_iostat (tbase); iospoke (UBR, P_LOCK); resetprio (); SWITCH (S_WAIT|S_HIGH|S_IMMED, 0700, again); /* this returns to BR->senv[0], except if CL_HI */ } here, ifsubmitbufl, tbase, l and again are fontified as types. They are fontified correctly by CC Mode, as three identifiers and one label. Trying to indent after "again:" results in text being indented to column 0. In GNU Emacs 29.0.50 (build 3, x86_64-pc-linux-gnu) of 2022-11-21 built on trinity Repository revision: c1a95056214d9bf18bc2c34e938205f1da916bba Repository branch: feature/tree-sitter Windowing system distributor 'The X.Org Foundation', version 11.0.12101099 System Description: Fedora Linux 37 (Workstation Edition) Configured using: 'configure --with-tree-sitter --with-x-toolkit=no --without-cairo --with-dumping=unexec' Configured features: ACL DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY OLDXMENU PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TREE_SITTER UNEXEC WEBP X11 XDBE XFT XIM XINPUT2 XPM ZLIB
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Po Lu <luangruo@HIDDEN> Subject: bug#59435: Acknowledgement (29.0.50; tree-sitter fails to fontify or indent simple function) Message-ID: <handler.59435.B.166901100312451.ack <at> debbugs.gnu.org> References: <871qpw7s9k.fsf@HIDDEN> X-Gnu-PR-Message: ack 59435 X-Gnu-PR-Package: emacs Reply-To: 59435 <at> debbugs.gnu.org Date: Mon, 21 Nov 2022 06:11:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 59435 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 59435: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D59435 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#59435: 29.0.50; tree-sitter fails to fontify or indent simple function Resent-From: Yuan Fu <casouri@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 21 Nov 2022 09:46:02 +0000 Resent-Message-ID: <handler.59435.B59435.166902391718528 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59435 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Po Lu <luangruo@HIDDEN> Cc: 59435 <at> debbugs.gnu.org Received: via spool by 59435-submit <at> debbugs.gnu.org id=B59435.166902391718528 (code B ref 59435); Mon, 21 Nov 2022 09:46:02 +0000 Received: (at 59435) by debbugs.gnu.org; 21 Nov 2022 09:45:17 +0000 Received: from localhost ([127.0.0.1]:45459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ox3Ma-0004om-Rc for submit <at> debbugs.gnu.org; Mon, 21 Nov 2022 04:45:17 -0500 Received: from mail-pj1-f54.google.com ([209.85.216.54]:54803) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <casouri@HIDDEN>) id 1ox3MX-0004oS-W9 for 59435 <at> debbugs.gnu.org; Mon, 21 Nov 2022 04:45:15 -0500 Received: by mail-pj1-f54.google.com with SMTP id g5so1461352pjp.4 for <59435 <at> debbugs.gnu.org>; Mon, 21 Nov 2022 01:45:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=5opb/BEx3dX/BguLjUayy3WfOqnxlbD0FcSynwNVKlA=; b=SnrJu5mKQnxJfT/PAcnmz2+sO797kcNSTAhp7zMyHPDYqbjSCjbRgDhEqaKkt6uAxI e1BSqlYqtbKNEkD849wWNfBl4QIYKUZUDf83q7CycllNnbvocgGaBgCAnBU7VmJ0K4Cv zDSXDvL4AhvkM0yeqn/4a/VnyJIAO8Dc5jbrCNOv1u2e/mxrPuXgqBBb7o5Jdw1hlQ5k pEvlSlN57p3Ee6v58h7WmKSGrncg21pFwdoZTBJKqV/QpSOrWlpA5NauKsQw9XzB7wBZ CY9rgY9aJ5oRN7zy0q8p3uL03fzgC0Zu23W+X0SKeF3G0JFpouuOg8tS3+DPxsQ/PfRn MZtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5opb/BEx3dX/BguLjUayy3WfOqnxlbD0FcSynwNVKlA=; b=edpF5xBmQHoqsy+pldqVL7ugI/vJDp1WoA5gpga+F8wyZd2Rycb0EsnLQEXkU1k7J5 AVYo78xzdyO5tDVuEt71hLN2b5iaZ6OIDTInRP4OgZACSzPjoUfINnk+/90nkLZFAe28 wO8o/26K55yD/OzNQBdrfX060fZTqJyMLMO6aI0Z9xzn/dC4efvzA1j2PNlVG9BpV4xQ XWFT0A3e2gHvQz7Um6NUR7DGiQwSFOh0Q2/fGQ9zJF6WAvHsvNfdQzMv4kwmXDxuiBKE e5gz920KhZJxeu5kgfm7CLHk35ESsfEvvj7fI1cDxizg4imDNteAd9rhAp1vJDSVjSTZ pIGw== X-Gm-Message-State: ANoB5pnBvWh1DXNHDvPcQUvKKh1zoLSDZHTQ+X/SDUpsGVfROEF79BMM fRqmjHxKRBPI4oU2JI5NS/E= X-Google-Smtp-Source: AA0mqf4UTB9oNzNbumZ7kmIsiFoaedEJdtCRAB6Ym5mE4ZWu0DIGPkxaES/NQELqfssJ5usnz423Gw== X-Received: by 2002:a17:902:7b96:b0:188:b0db:cd5d with SMTP id w22-20020a1709027b9600b00188b0dbcd5dmr2005309pll.104.1669023908065; Mon, 21 Nov 2022 01:45:08 -0800 (PST) Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id a28-20020aa795bc000000b0056beae3dee2sm8491006pfk.145.2022.11.21.01.45.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Nov 2022 01:45:07 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) From: Yuan Fu <casouri@HIDDEN> In-Reply-To: <871qpw7s9k.fsf@HIDDEN> Date: Mon, 21 Nov 2022 01:45:06 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <3A4C0323-634D-437D-9510-50E59A254619@HIDDEN> References: <871qpw7s9k.fsf.ref@HIDDEN> <871qpw7s9k.fsf@HIDDEN> X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) > On Nov 20, 2022, at 10:09 PM, Po Lu via Bug reports for GNU Emacs, the = Swiss army knife of text editors <bug-gnu-emacs@HIDDEN> wrote: >=20 >=20 > c-ts-mode cannot fontify the following code: >=20 > ifsubmitbufl (tp) > { > register *kb1 =3D tp; > extern tbase, i_len; > register l =3D len; >=20 > again: >=20 > highprio (); /* tbase is used by protoureg */ > iomap (&UBR, tbase +=3D UBR_SIZ); > UBR->addr_l =3D kb1; > UBR->addr_m =3D kb1 >> 010; > UBR->mode_l =3D 07777 &~ UBR_INST; > UBR->mode_m =3D 0; > UBR->long_l =3D l; > UBR->long_m =3D l >> 010; >=20 > iounmap (); > tally_iostat (tbase); > iospoke (UBR, P_LOCK); > resetprio (); >=20 > SWITCH (S_WAIT|S_HIGH|S_IMMED, 0700, again); /* this returns to > BR->senv[0], except > if CL_HI */ > } >=20 > here, ifsubmitbufl, tbase, l and again are fontified as types. They = are > fontified correctly by CC Mode, as three identifiers and one label. Thanks, I fixe the label=E2=80=99s face. As for ifsubmitbufl, tbase, and = l, I don=E2=80=99t really understand the syntax here, and I think = neither does tree-sitter . In general tree-sitter struggles with = nonstandard (in its book anyway) syntax. And there aren=E2=80=99t much = we can do (except for maybe improve tree-sitter-c=E2=80=99s parser). >=20 > Trying to indent after "again:" results in text being indented to = column > 0. Seems to work fine here. I don=E2=80=99t see anything I changed recently = that could affect this, either. Yuan=
X-Loop: help-debbugs@HIDDEN Subject: bug#59435: 29.0.50; tree-sitter fails to fontify or indent simple function Resent-From: Po Lu <luangruo@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 21 Nov 2022 11:58:01 +0000 Resent-Message-ID: <handler.59435.B59435.16690318468338 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59435 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Yuan Fu <casouri@HIDDEN> Cc: 59435 <at> debbugs.gnu.org Received: via spool by 59435-submit <at> debbugs.gnu.org id=B59435.16690318468338 (code B ref 59435); Mon, 21 Nov 2022 11:58:01 +0000 Received: (at 59435) by debbugs.gnu.org; 21 Nov 2022 11:57:26 +0000 Received: from localhost ([127.0.0.1]:45592 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ox5QU-0002AQ-DC for submit <at> debbugs.gnu.org; Mon, 21 Nov 2022 06:57:26 -0500 Received: from sonic317-34.consmr.mail.ne1.yahoo.com ([66.163.184.45]:43852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <luangruo@HIDDEN>) id 1ox5QR-0002AA-9j for 59435 <at> debbugs.gnu.org; Mon, 21 Nov 2022 06:57:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1669031837; bh=ciOem5wzZqJDBIVRX5G+p3fGuvGSwM+qimwmFxe1a0Q=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=N3juS4GLq586pzWioE/Bvp8iCTOAHqZ/IjcQt49qzE+qW8EO+I0vbCyGoseiSpIpGd6vLppLZ2DI2tIxzUIkMzHRlXLB9mLBP2vrslVF/8iNxZpZgxlM1mx1UTsY4LqSLKIFAVTncHs8AYtBraJ48BY8GApyry466qLlzdnbDIDNEtzFYzRilYgNK9ELD2FigKfQx0Cjeh5QJimo8yDS9rSFwW27Uv263/im76amuora+tRx/9fkOKrK4T+5UB1e+0yoSUU+FVtZYDxPxSo+Es+OXg9Rnxrv4Ml3Zb9hrQW/3kFAeNP2k8aHmytqNlY6cVMEn2zTd74Mw3UyllWQLw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1669031837; bh=iVjZtcz8eq44yjX6sNQRrFqSN1ZQJePIddcz90dQ/xv=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=nd1xkPTsO3qj3YciE+VXXI0l8wPRh5U2kEoGd2V/U4fQzAyMvgfNETQpKJdyy3WGOROj/xmrmojXAaEDssgGBkLz6Sywn7rdT9WOvStgVCiAVHvHZzuqjWm8c6RwbE2FHdFNvv6sGhzTRYIArFQKW8dtiQsCqZPQZcrtGWhfkJHEqQDL8lNMllienr0zjwmUMV6wyggJmdcvLPuuHidZusrMcpsqGCp0gOng1tyP3bXPBXXR4HSA0dy7U9ivem4fugFXtxdvKGm6bNXdMg17VAyoLRZveT5oeT18dpcPdlsTrsiuQNHNxfjj2dQf+N53mdOsHAorsfDTeTSakjKfXw== X-YMail-OSG: z_KfqPsVM1lPYEkqPQDvo8UODIb_4tp.1YBIXSnp4GdDASzFiTFu7Szs2H4IcSk CouTfVFLMnYd8R8WpkLoCmFxzNPN.q.ulyN7IaHr2k2kaogvg4zv6nQmAKmT5ErU5xehmWrhbx6J 8JGxgRSysNxAYkovcp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uafFjJCKpRZIb4grtYOMIf3R8hKZqg48oTi95lnpCXYUS7n6an X-Sonic-MF: <luangruo@HIDDEN> Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.ne1.yahoo.com with HTTP; Mon, 21 Nov 2022 11:57:17 +0000 Received: by hermes--production-sg3-6c8895b545-xbfp8 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID a0ca3db1781ba0607b4f1dd28148257c; Mon, 21 Nov 2022 11:57:14 +0000 (UTC) From: Po Lu <luangruo@HIDDEN> In-Reply-To: <3A4C0323-634D-437D-9510-50E59A254619@HIDDEN> (Yuan Fu's message of "Mon, 21 Nov 2022 01:45:06 -0800") References: <871qpw7s9k.fsf.ref@HIDDEN> <871qpw7s9k.fsf@HIDDEN> <3A4C0323-634D-437D-9510-50E59A254619@HIDDEN> Date: Mon, 21 Nov 2022 19:57:08 +0800 Message-ID: <87mt8k5xm3.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.20863 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 1763 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Yuan Fu <casouri@HIDDEN> writes: >> On Nov 20, 2022, at 10:09 PM, Po Lu via Bug reports for GNU Emacs, the S= wiss army knife of text editors <bug-gnu-emacs@HIDDEN> wrote: >>=20 >>=20 >> c-ts-mode cannot fontify the following code: >>=20 >> ifsubmitbufl (tp) >> { >> register *kb1 =3D tp; >> extern tbase, i_len; >> register l =3D len; >>=20 >> again: >>=20 >> highprio (); /* tbase is used by protoureg */ >> iomap (&UBR, tbase +=3D UBR_SIZ); >> UBR->addr_l =3D kb1; >> UBR->addr_m =3D kb1 >> 010; >> UBR->mode_l =3D 07777 &~ UBR_INST; >> UBR->mode_m =3D 0; >> UBR->long_l =3D l; >> UBR->long_m =3D l >> 010; >>=20 >> iounmap (); >> tally_iostat (tbase); >> iospoke (UBR, P_LOCK); >> resetprio (); >>=20 >> SWITCH (S_WAIT|S_HIGH|S_IMMED, 0700, again); /* this returns to >> BR->senv[0], except >> if CL_HI */ >> } >>=20 >> here, ifsubmitbufl, tbase, l and again are fontified as types. They are >> fontified correctly by CC Mode, as three identifiers and one label. > > Thanks, I fixe the label=E2=80=99s face. Thanks. > As for ifsubmitbufl, tbase, and l, I don=E2=80=99t really understand the > syntax here, and I think neither does tree-sitter . In general > tree-sitter struggles with nonstandard (in its book anyway) syntax. Well, that code is 100% valid C. "*kb1, tbase, i_len, l" are implicitly int (which on that machine is 16 bits wide), and so is the value of "ifsubmitbufl" and "tp". > And there aren=E2=80=99t much we can do (except for maybe improve > tree-sitter-c=E2=80=99s parser). Would someone try that? > Seems to work fine here. I don=E2=80=99t see anything I changed recently = that > could affect this, either. Sorry, I think I meant "before". Place point after "l =3D len;", then press RET.
X-Loop: help-debbugs@HIDDEN Subject: bug#59435: 29.0.50; tree-sitter fails to fontify or indent simple function Resent-From: Stefan Kangas <stefankangas@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 21 Nov 2022 13:54:02 +0000 Resent-Message-ID: <handler.59435.B59435.16690387824731 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59435 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Yuan Fu <casouri@HIDDEN>, Po Lu <luangruo@HIDDEN> Cc: 59435 <at> debbugs.gnu.org Received: via spool by 59435-submit <at> debbugs.gnu.org id=B59435.16690387824731 (code B ref 59435); Mon, 21 Nov 2022 13:54:02 +0000 Received: (at 59435) by debbugs.gnu.org; 21 Nov 2022 13:53:02 +0000 Received: from localhost ([127.0.0.1]:45830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ox7EM-0001E9-A7 for submit <at> debbugs.gnu.org; Mon, 21 Nov 2022 08:53:02 -0500 Received: from mail-oi1-f169.google.com ([209.85.167.169]:44010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1ox7EK-0001Dq-SU for 59435 <at> debbugs.gnu.org; Mon, 21 Nov 2022 08:53:01 -0500 Received: by mail-oi1-f169.google.com with SMTP id q83so12532710oib.10 for <59435 <at> debbugs.gnu.org>; Mon, 21 Nov 2022 05:53:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date :message-id:reply-to; bh=DmXSekGN3ZtlDHUeVb99x25m0/VnsAigAgScbv5eV6k=; b=LhSnXa1K5Z5MDY+sjt2WVOPApQ3/fBbJARIbXARJFdITlg4+G4IyGV8w6ZY+93G879 TblGKzZg7fjSrZDVVmxRA+brAN0I1T3Y6MPwPa5pe2kWlPEq9HURY0c3iEJWYQcNfY7a 1T9NhQUNl59gvKWY0W7frwVs0q7f7iW+IjFsynnMKaMCjjoN3Met01V5eRvbiai0d8ma QFQ4oROu+N3MU2rpxfRe+1NyibV+BvkxsFRBDhtBatxqm+NyPkoNQBZ7oVq+br5/kSfG 5WIT+23YGla4O16VWOuwGDwlsXHe/z/YxbMOqkXr1ESnh/xRZ+IGk+wE7ZVCHkWhLkOV 5Xlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=DmXSekGN3ZtlDHUeVb99x25m0/VnsAigAgScbv5eV6k=; b=eJuxFksq24iNzG9L8gePE3T4OC9rtzQ69iDor4kNua8SxrYOFdtPWOKB3GP342IRDz BuoplcRDaFw+r2yTdLcFKLQZcDPAo/wP5i8QnqN+149ptarZXbkdJigmK3RqF4LvjGjg oAbT4rAqpRdXqEjQTYLi4z61hpzpu+CmLaTwNXEPtMXTRK4eFyfX8JXXe7jLPzq3Wsjo UZn6NUiNoxWgZ7A769HGqZjTcqDOx33cjz+BkR1Ya86XY/KQriZ5Jvb3SLNIg25qOM7q vUbZtjOhfMVdsM/xfjV14ygbAj3E6W+AwdJ1vgb2YVWuGuIvL9Q2G9Yp69w1o2icWDlw cPJw== X-Gm-Message-State: ANoB5plxHHnt7R2zoA2X3RTniFLLyeZN50iILe/koQetpfr7w6ewrg/S dq+wRFbPy3eQ9D6OElfqttuaJx/eutjT9RReSuQ= X-Google-Smtp-Source: AA0mqf4n8hd46lBUa93vGGJSBWJ9PkMD+Ebc9KXwMXrErRGKd33tB8lc3a1JcqZ90egpfTRK3qr5K4r2eiBjTcXzFjY= X-Received: by 2002:a05:6808:1287:b0:359:dc32:4f9e with SMTP id a7-20020a056808128700b00359dc324f9emr1003271oiw.92.1669038775429; Mon, 21 Nov 2022 05:52:55 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 21 Nov 2022 05:52:55 -0800 From: Stefan Kangas <stefankangas@HIDDEN> In-Reply-To: <3A4C0323-634D-437D-9510-50E59A254619@HIDDEN> References: <871qpw7s9k.fsf.ref@HIDDEN> <871qpw7s9k.fsf@HIDDEN> <3A4C0323-634D-437D-9510-50E59A254619@HIDDEN> X-Hashcash: 1:20:221121:casouri@HIDDEN::irHUJz485INdmLEj:96wS MIME-Version: 1.0 Date: Mon, 21 Nov 2022 05:52:55 -0800 Message-ID: <CADwFkmk8K5mY5dHyxWH3NsgEYPgCmas_4svDa-dAUm9SHkgu7A@HIDDEN> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Yuan Fu <casouri@HIDDEN> writes: > And there aren=E2=80=99t much we can do (except for maybe improve > tree-sitter-c=E2=80=99s parser). We should report these cases as bugs though, right? IOW, I'm thinking that, going forward, perhaps in these cases it makes sense for us to close bugs once there is a corresponding bug reported against the relevant treesitter grammar.
X-Loop: help-debbugs@HIDDEN Subject: bug#59435: 29.0.50; tree-sitter fails to fontify or indent simple function Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 21 Nov 2022 13:54:03 +0000 Resent-Message-ID: <handler.59435.B59435.16690388214823 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59435 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Po Lu <luangruo@HIDDEN> Cc: 59435 <at> debbugs.gnu.org, casouri@HIDDEN Received: via spool by 59435-submit <at> debbugs.gnu.org id=B59435.16690388214823 (code B ref 59435); Mon, 21 Nov 2022 13:54:03 +0000 Received: (at 59435) by debbugs.gnu.org; 21 Nov 2022 13:53:41 +0000 Received: from localhost ([127.0.0.1]:45841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ox7Ez-0001Fj-39 for submit <at> debbugs.gnu.org; Mon, 21 Nov 2022 08:53:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36980) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1ox7Ew-0001FU-TM for 59435 <at> debbugs.gnu.org; Mon, 21 Nov 2022 08:53:39 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1ox7Er-0003Fk-Ix; Mon, 21 Nov 2022 08:53:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=EBYsOeOhXm2T2+YPIBcFZT4dEMvPd0p5C/WNzuan0oU=; b=na0tWEc663Vzh0UP9iur ppQSfrW7r0+M6+kaDtr50lKMztvzDEQY+Dt6DubY6LID/92W9ajxaZl49LVgz5hsZBgt0yu6aJYnR mIrElHXIOzKVa1A8NBI2GJ6VqMiSp0KzKy3sY2maT3bsX04SIkYdkhtFdSxu0e3JPZemNhk3fr8hC 7J4dV1wp5pnixHpXsI5ODnqrv2c8xVkLspeMEoi3hXCRDj2XeXh3W2mFFU2Awzaa5ZfaIxtZJdGvW nNT4t7NnT0RT3A+DkVqgVqLen/kO2hNAfV061IZPXmXQ60XU34FMhHyekQdc7VCpJD12OInbbd63C pw6UytcrXbin5g==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1ox7Eq-0004S8-TV; Mon, 21 Nov 2022 08:53:33 -0500 Date: Mon, 21 Nov 2022 15:53:44 +0200 Message-Id: <83wn7o2z2v.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <87mt8k5xm3.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN) References: <871qpw7s9k.fsf.ref@HIDDEN> <871qpw7s9k.fsf@HIDDEN> <3A4C0323-634D-437D-9510-50E59A254619@HIDDEN> <87mt8k5xm3.fsf@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Cc: 59435 <at> debbugs.gnu.org > Date: Mon, 21 Nov 2022 19:57:08 +0800 > From: Po Lu via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> > > > As for ifsubmitbufl, tbase, and l, I don’t really understand the > > syntax here, and I think neither does tree-sitter . In general > > tree-sitter struggles with nonstandard (in its book anyway) syntax. > > Well, that code is 100% valid C. It's K&R C, which is used very rarely these days, and it sounds like the next version of GCC will reject it, since C2x makes it invalid. So I see no catastrophe that c-ts-mode doesn't support this. You can always opt not to use c-ts-mode if you need this style supported. Of course, if tree-sitter's parser is updated to add such support, we'll all be happier.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.