tree-sitter-grammars / tree-sitter-bitbake

BitBake grammar for tree-sitter
MIT License
15 stars 6 forks source link

Support for 3.x syntax #2

Open lgrosz opened 1 year ago

lgrosz commented 1 year ago

I was wondering if it'd be possible to support the 3.x syntax. For example, _append instead of :append.

amaanq commented 1 year ago

any chance you can link to the docs for it?

lgrosz commented 1 year ago

Here is the documentation for 3.1 syntax.

Here is the vimscript implementation of the syntax, which has been unchanged for quite a long time and seems to work nicely.

I am not sure if the syntaxes would play nicely together, or if there is some sort of configuration that can be applied to load one versus the other - I am not familiar enough with treesitter.

amaanq commented 1 year ago

hmm, I was hoping for a slightly simpler/cleaner page with examples I can easily peruse - that link is lengthy

I see that what I referenced - https://docs.yoctoproject.org/bitbake/2.4/index.html - is for BitBake 2.4 I assume, but I couldn't seem to navigate to 3.1's version on this site, would be nice if there was something similar

Nvm, I got put off by the site's design itself, seems to be similar enough so I'll go with that, thanks!

lgrosz commented 1 year ago

I tried to link the appropriate heading, but it appears some browsers or the site itself doesn't respect the anchor declaration in the url. There should also be an "individual web page" version. I just use the mega manual since I find it easier to search through.

snogge commented 9 months ago

Note that the 3.1 link above refers to the Yocto Project Release 3.1, which is actually bitbake 1.46. The bitbake 2.4 link above refers to bitbake 2.4, which was part of the Yocto Project 4.2 release.
The overload operator was changed from _ to : somewhere around there because _ was also used as a word separator in variable names. So the requested syntax is the older syntax, though still valid in some of the LTS branches. The releases are listed here https://wiki.yoctoproject.org/wiki/Releases