Nextflow grammar for tree-sitter. Mirrors the official Nextflow ANTLR grammar.
The Rust, Python, and C bindings are built from source:
git clone https://github.com/nextflow-io/tree-sitter-nextflow.git- Python:
pip install . - Rust: add a path or git dependency on this repo in
Cargo.toml. - C:
makebuilds the shared library.
See editor and tool integrations for the query files and the requirements for Bash highlighting inside process scripts.
The repo includes an ast-grep setup for searching, linting, and outlining Nextflow code by syntax tree:
ast-grep -l nextflow -p 'Channel.from($$$)' .See docs/ast-grep/ for setup, the bundled lint rules, and the pattern library.