BitBake Highlight & Hover
Lightweight BitBake / Yocto Project support for VS Code.
Features
- Syntax highlighting for
.bb, .bbappend, .bbclass, .inc and .conf files
(grammar from Simple Bitbake Syntax Highlight by MicroHobby, MIT).
- File icon for BitBake files.
- Hover documentation:
- ~260 variables (
SRC_URI, DEPENDS, RDEPENDS, WORKDIR, S, D, bindir, IMAGE_INSTALL, KERNEL_DEVICETREE…)
- tasks (
do_install, do_deploy…)
- classes after
inherit (cmake, systemd, update-rc.d…)
- keywords (
addtask, require, python…)
- shell commands inside tasks (
install, cp, sed, oe_runmake…)
- assignment operators (
?=, ??=, :=, +=…) and :append / :prepend / :remove
- values assigned in the current file, and functions/tasks defined in it
- a link to the Yocto Project documentation in every tooltip
Notes
- If Simple Bitbake Syntax Highlight is also installed, disable one of the two
extensions: both register the
bitbake language.
- Hover only looks at the open file;
required / included files are not read.
Contributing
Hover texts live in data/docs.js. Pull requests welcome.
License
MIT. See LICENSE (includes the notice for the MicroHobby grammar).
| |