On Tuesday, 3 February 2026 14:49:25 Central European Standard Time Kan-Ru 
Chen wrote:
> On Tue, Feb 3, 2026, at 12:54 AM, Andreas Schneider wrote:
> 
> > Hello RPM Spec Enjoyers!
> >
> >
> >
> > Some time ago I've started to write a tree-sitter parser for RPM Spec
> > files. 
 It is finally in a state where it is ready for testing!
> >
> >
> >
> > If you are a friend of syntax highlighting and use an editor which
> > supports 
 tree-sitter, it would be great if you could give it a try and
> > report bugs.>
> >
> >
> > You can find it here:
> >
> >
> >
> > https://gitlab.com/cryptomilk/tree-sitter-rpmspec/
> >
> >
> >
> > Instruction for Neovim can be found here:
> >
> >
> >
> > https://gitlab.com/cryptomilk/tree-sitter-rpmspec/-/blob/main/NEOVIM.md
> 
> 
> To set up Helix, add the following to ~/.config/helix/languages.toml
> 
> ```
> [[language]]
> name = "rpmspec"
> scope = "source.rpmspec"
> file-types = ["spec"]
> grammar = "rpmspec"
> 
> [[grammar]]
> name = "rpmspec"
> source = { git = "https://gitlab.com/cryptomilk/tree-sitter-rpmspec";, rev =
> "ddb6084ce8472af0dbef99368389c8e69e48a688", subpath = "rpmspec" }
 ```
> 
> Run
> 
> ```
> hx --grammar fetch
> hx --grammar build
> mkdir -p ~/.config/helix/runtime/queries/rpmspec
> ln -s ~/.config/helix/runtime/grammars/sources/rpmspec/rpmspec/queries/*.scm
> \
 ~/.config/helix/runtime/queries/rpmspec
> ```

I think you also want rpmbash and the queries from the neovim directory.
 
> 
> 
> > Best regards
> >
> >
> >
> >
> >         Andreas
> >
> >
> >
> >
> > P.S: If you're interested in the details, take a look at the DESIGN.md
> > files
 linked in the README.md.




-- 
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to