all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* New tree sitter "official" langs
       [not found] <ek4c5ehmvi5ljrlesp4d4allcmtxuwo5wohqdaaiaxbpeeeec5.ref@lafpkc45wyhm>
@ 2024-07-23 14:41 ` Ergus
  2024-07-23 21:40   ` Björn Bidar
  0 siblings, 1 reply; 2+ messages in thread
From: Ergus @ 2024-07-23 14:41 UTC (permalink / raw)
  To: emacs-devel

Hi:

Recently I have found that some of the grammar source repositories
we use in:

https://github.com/casouri/tree-sitter-module

are out of date (2 or 3 years with no updates, fixes or replies to
issues).

Some of those repositories are somehow "Legacy" because they are
superseded by a new "official" repository:

https://github.com/tree-sitter-grammars

This seems to be a meta-repo including support for many langs including
some that are supported by emacs.

I opened this issue:

https://github.com/casouri/tree-sitter-module/issues/53

Where I added a table of the modules that could be desirable to update
to the `tree-sitter-grammars' source. Most of them can (and apparently
should) be updated immediately with no issue.

The only two exceptions are markdown and scss, where we use two grammars
that seems unmaintained. So I may ask the *-ts-mode developers to
consider to update to the new grammars versions if there is some
incompatibility.

Specially the markdown one seems to be more feature rich and include
inline markdown as well. https://github.com/tree-sitter-grammars/tree-sitter-markdown

The scss looks like maybe in the past it was forked from the one we use,
not sure of this.

In any case, none of those two have been updated in 3 years and the new
version received updates only two months ago.

Best,
Ergus



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: New tree sitter "official" langs
  2024-07-23 14:41 ` New tree sitter "official" langs Ergus
@ 2024-07-23 21:40   ` Björn Bidar
  0 siblings, 0 replies; 2+ messages in thread
From: Björn Bidar @ 2024-07-23 21:40 UTC (permalink / raw)
  To: Ergus; +Cc: emacs-devel


Hey,

While updating the source of grammars in Emacs it would
also make sense to mention that grammars or better the parsers
generated by the grammars can be obtained by Linux some distributions.
Besides the ease of use for the user the limitation of having to
generate parser and build them is not needed anymore.
Granted many of the projects store the generated parser blob in their
own source tree however that doesn't mean it's up to date or trustful.

E.g. for Arch Linux, openSUSE, Alt Linux.
Fedora has started packging grammars but so far it only has managed to
package one (Java).

https://pkgs.org/search/?q=tree-sitter

I did the rpm packaging for tree-sitter-grammars for openSUSE. The
grammars can be installed through the package manager and Emacs will
pick them up without any user intervention.
The packaging isn't openSUSE specific by any means.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-07-23 21:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <ek4c5ehmvi5ljrlesp4d4allcmtxuwo5wohqdaaiaxbpeeeec5.ref@lafpkc45wyhm>
2024-07-23 14:41 ` New tree sitter "official" langs Ergus
2024-07-23 21:40   ` Björn Bidar

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.