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

[feat] support adding other languages #10

Open
FederAndInk opened this issue Nov 5, 2023 · 3 comments
Open

[feat] support adding other languages #10

FederAndInk opened this issue Nov 5, 2023 · 3 comments

Comments

@FederAndInk
Copy link

add support for other languages (other than shellscript) such as bitbake (.bb, .bbappend files marked as bitbake lang with the bitbake extension) which is a mix of python and shell. I think just adding support in the entire bitbake file would be enough.

Transfered from yamaton/h2o-curated-data#4

@FederAndInk
Copy link
Author

FederAndInk commented Nov 5, 2023

I'd like to check if the current bash parser (tree-sitter-bash) works okay with bitbake files. Would you suggest me some sample .bb files?

Thanks for looking into it 👍

The best would be to clone poky and look at the different .bb .bbappend .bbclass .inc files: https://git.yoctoproject.org/poky

some examples:
https://git.yoctoproject.org/poky/tree/meta/recipes-extended/bash/bash.inc
https://git.yoctoproject.org/poky/tree/meta/recipes-extended/iptables/iptables_1.8.9.bb
https://git.yoctoproject.org/poky/tree/meta/classes/useradd.bbclass
https://github.com/kraj/meta-clang/blob/master/recipes-devtools/python/python3_%25.bbappend

@yamaton
Copy link
Owner

yamaton commented Nov 5, 2023

Thanks for the reference. The auto-completions and hovers seem to work.

So, I released v0.2.15 that activates with Bitbake language mode. Hope it's useful ✨

@FederAndInk
Copy link
Author

Thanks ^^
Seems to be working 🎉

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

2 participants