3 releases (breaking)
| 0.2.0 | May 9, 2024 |
|---|---|
| 0.1.0 | Sep 9, 2021 |
| 0.0.1 | Sep 9, 2021 |
#25 in #dockerfile
787 downloads per month
Used in 15 crates
(4 directly)
290KB
9K
SLoC
This crate provides dockerfile language support for the tree-sitter parsing library.
Typically, you will use the language function to add this language to a tree-sitter Parser, and then use the parser to parse some code:
let code = "";
let mut parser = tree_sitter::Parser::new();
parser.set_language(tree_sitter_dockerfile::language()).expect("Error loading dockerfile grammar");
let tree = parser.parse(code, None).unwrap();
tree-sitter-dockerfile
Dockerfile grammar for tree-sitter.
An action shot of highlighting in neovim:

Dependencies
~2.5–4MB
~70K SLoC