yamaton / vscode-h2o

Add CLI autocomplete functionalities to Shell Script
MIT License
16 stars 1 forks source link

[feat] support adding other languages #10

Open FederAndInk opened 10 months ago

FederAndInk commented 10 months ago

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 https://github.com/yamaton/h2o-curated-data/issues/4

FederAndInk commented 10 months ago

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 :+1:

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 commented 10 months ago

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 commented 10 months ago

Thanks ^^ Seems to be working :tada: