6 releases (breaking)

0.6.0 Mar 31, 2025
0.5.0 Mar 6, 2025
0.4.1 Sep 19, 2023
0.3.0 May 26, 2023
0.1.0 May 19, 2023

#5 in #everywhere

Download history 98/week @ 2025-01-27 19/week @ 2025-02-03 38/week @ 2025-02-10 75/week @ 2025-02-17 72/week @ 2025-02-24 156/week @ 2025-03-03 26/week @ 2025-03-10 34/week @ 2025-03-17 20/week @ 2025-03-24 170/week @ 2025-03-31 78/week @ 2025-04-07 68/week @ 2025-04-14 25/week @ 2025-04-21 19/week @ 2025-04-28 45/week @ 2025-05-05 23/week @ 2025-05-12

119 downloads per month
Used in 3 crates

MPL-2.0 license

605KB
697 lines

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:

  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 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.

No runtime deps