* Tree-sitter C grammar moves to support K&R C
@ 2023-08-13 5:28 Eli Zaretskii
2023-08-19 5:08 ` Yuan Fu
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2023-08-13 5:28 UTC (permalink / raw)
To: Yuan Fu; +Cc: emacs-devel
See
https://github.com/tree-sitter/tree-sitter-c/commit/b493a9c6be23e05a85d500ebc83da7bda1ec2f56
Yuan, do we need to change anything in our c-ts-mode to take advantage
of this support?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Tree-sitter C grammar moves to support K&R C
2023-08-13 5:28 Tree-sitter C grammar moves to support K&R C Eli Zaretskii
@ 2023-08-19 5:08 ` Yuan Fu
2023-08-19 6:35 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: Yuan Fu @ 2023-08-19 5:08 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
> On Aug 12, 2023, at 10:28 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>
> See
>
> https://github.com/tree-sitter/tree-sitter-c/commit/b493a9c6be23e05a85d500ebc83da7bda1ec2f56
>
> Yuan, do we need to change anything in our c-ts-mode to take advantage
> of this support?
From what I can see, no. The grammar changes are internal, it’s just function_definition now recognizes K&R styles of definitions.
Yuan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Tree-sitter C grammar moves to support K&R C
2023-08-19 5:08 ` Yuan Fu
@ 2023-08-19 6:35 ` Eli Zaretskii
0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2023-08-19 6:35 UTC (permalink / raw)
To: Yuan Fu; +Cc: emacs-devel
> From: Yuan Fu <casouri@gmail.com>
> Date: Fri, 18 Aug 2023 22:08:32 -0700
> Cc: emacs-devel@gnu.org
>
> > On Aug 12, 2023, at 10:28 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> >
> > See
> >
> > https://github.com/tree-sitter/tree-sitter-c/commit/b493a9c6be23e05a85d500ebc83da7bda1ec2f56
> >
> > Yuan, do we need to change anything in our c-ts-mode to take advantage
> > of this support?
>
> From what I can see, no. The grammar changes are internal, it’s just function_definition now recognizes K&R styles of definitions.
Great, thanks.
They also added/extended the support for __attribute__ and other
extensions, btw.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-08-19 6:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-13 5:28 Tree-sitter C grammar moves to support K&R C Eli Zaretskii
2023-08-19 5:08 ` Yuan Fu
2023-08-19 6:35 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.