A tree-sitter parser for PyPA manifest files.
pip install tree-sitter-pymanifest
import tree_sitter_pymanifest as pymanifest
with open('MANIFEST.in', 'r') as mf:
# parse a MANIFEST.in file
tree = pymanifest.parse(mf.read())
# get the highlight groups
hl_groups = pymanifest.highlights(tree)
# run an arbitrary query
dir_patterns = pymanifest.query("""
(command dir_pattern: (pattern) @dir_pattern)
""", tree.root_node)
☑ Neovim
☐ Helix
☐ Emacs
☐ Zed
☐ Helix
☐ Emacs
☐ Zed
- Change bindings layout
- Move to
tree-sitter-grammars
org
- Drop Python 3.7 support
- Remove injections queries
- Use tree-sitter core highlight captures
- Add Python package tests
- Bundle queries in the package