verdant-queries 0.7.0

Collection of tree-sitter queries for verdant
docs.rs failed to build verdant-queries-0.7.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

verdant-queries

Collection of tree-sitter queries for verdant.

See the project overview for more information.

This crate defines constants for three types of tree-sitter queries for lots of parsers. It is intended to be used via verdant-parsers, verdant-parsers-git, or verdant-parsers-gitdep.

The three types of queries are:

  1. highlights: defining the highlight captures for nodes
  2. injections: defining where other languages are injected for highlighting
  3. locals: keeping track of scopes, variables, parameters, etc. to have occurrences of those be highlighted the same everywhere

The constants are defined as <language_name>_<kind>[_CRATES_IO] where <kind> is one of HIGHLIGHTS, INJECTIONS, or LOCALS. The INJECTIONS and LOCALS may be empty for some languages. The constants with the _CRATES_IO suffix aim to be compatible with the latest version of the parser that was published on crates.io. These are used by verdant-parsers, whereas the normal queries are used by verdant-parsers-git and verdant-parsers-gitdep.

The crate source is automatically generated with cargo xtask codegen inside the verdant workspace.