Crates.io | syntastica-queries |
lib.rs | syntastica-queries |
version | 0.4.1 |
source | src |
created_at | 2023-05-19 19:03:54.712744 |
updated_at | 2023-09-19 11:17:39.063784 |
description | Collection of tree-sitter queries for syntastica |
homepage | |
repository | https://github.com/RubixDev/syntastica |
max_upload_size | |
id | 869045 |
size | 428,949 |
syntastica-queries
Collection of tree-sitter queries for
syntastica
.
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
syntastica-parsers
,
syntastica-parsers-git
, or
syntastica-parsers-gitdep
.
The three types of queries are:
highlights
: defining the highlight captures for nodesinjections
: defining where other languages are injected for highlightinglocals
: keeping track of scopes, variables, parameters, etc. to have
occurrences of those be highlighted the same everywhereThe 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
syntastica-parsers
, whereas the
normal queries are used by
syntastica-parsers-git
and
syntastica-parsers-gitdep
.
The crate source is automatically generated with cargo xtask codegen
inside
the syntastica
workspace.