Skip to content

bug: Injections query is not included in Rust bindings #340

@noClaps

Description

@noClaps

Did you check existing issues?

  • I have read all the tree-sitter docs if it relates to using the parser
  • I have searched the existing issues of tree-sitter-cpp

Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)

No response

Describe the bug

There should be an INJECTIONS_QUERY in the Rust bindings, but there isn't one.

Steps To Reproduce/Bad Parse Tree

  1. Try to import INJECTIONS_QUERY with use tree_sitter_cpp::INJECTIONS_QUERY;.

Expected Behavior/Parse Tree

INJECTIONS_QUERY should be included in the Rust bindings.

/// The syntax highlighting query for languages injected into this one.
pub const INJECTIONS_QUERY: &str = include_str!("../../queries/injections.scm");

It should be usable with:

use tree_sitter_cpp::INJECTIONS_QUERY;

Repro

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions