A Tree-sitter grammar for Justfiles, enabling syntax highlighting and parsing for the just command runner.
tree-sitter-just is a Tree-sitter grammar for Justfiles, the configuration files used by the `just` command runner. It enables syntax highlighting, parsing, and other editor features for Justfiles in code editors like Neovim and Helix.
Developers who use the `just` command runner and want enhanced editor support for their Justfiles, particularly those using Neovim or Helix.
It provides an accurate, maintained grammar that integrates seamlessly with popular editors, offering better code navigation and readability for Justfiles compared to basic syntax support.
Treesitter grammar for Justfiles (casey/just)
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Directly included in nvim-treesitter and Helix by default, eliminating the need for separate installation in standard setups and ensuring out-of-the-box syntax highlighting.
Faithfully reflects Just's actual syntax, including its quirks like not supporting comments in certain places, as documented in the README, providing reliable parsing for Justfiles.
Includes corpus and highlight tests, some generated by a fuzzer, to ensure the grammar handles edge cases and maintains parsing accuracy over time.
Uses scripts to build editor-specific query files from a shared source in queries-src, making it easier to maintain and update queries for different editors like Neovim and Helix.
Requires the nightly version of nvim-treesitter (since a specific commit in 2024), which may not be stable or accessible for all users, limiting compatibility with older or stable releases.
Custom installations, especially for Helix, involve manual steps like editing languages.toml, linking query directories, and running build commands, which can be error-prone and time-consuming.
Primarily targets Neovim and Helix; users of other editors like Emacs or Sublime Text must find or create their own integrations, as the project does not provide broader support out-of-the-box.