Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for 3.x syntax #2

Open
lgrosz opened this issue Sep 11, 2023 · 5 comments
Open

Support for 3.x syntax #2

lgrosz opened this issue Sep 11, 2023 · 5 comments

Comments

@lgrosz
Copy link

lgrosz commented Sep 11, 2023

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

@amaanq
Copy link
Member

amaanq commented Oct 4, 2023

any chance you can link to the docs for it?

@lgrosz
Copy link
Author

lgrosz commented Oct 4, 2023

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
Copy link
Member

amaanq commented Oct 4, 2023

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
Copy link
Author

lgrosz commented Oct 4, 2023

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
Copy link

snogge commented Feb 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants