Skip to content

Commit

Permalink
Update include paths for Cargo publish
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Mar 12, 2024
1 parent 80d612d commit 613b3fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ license = "MIT"
autoexamples = false

build = "bindings/rust/build.rs"
include = ["bindings/rust/*", "grammar.js", "queries/*", "src/*"]
include = ["bindings/rust/*", "grammar.js", "queries-flavored/helix/*", "src/*"]

[lib]
path = "bindings/rust/lib.rs"
Expand Down
6 changes: 3 additions & 3 deletions bindings/rust/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ pub fn language() -> Language {
/// [`node-types.json`]: https://tree-sitter.github.io/tree-sitter/using-parsers#static-node-types
pub const NODE_TYPES: &str = include_str!("../../src/node-types.json");

pub const HIGHLIGHTS_QUERY: &str = include_str!("../../queries-src/highlights.scm");
pub const INJECTIONS_QUERY: &str = include_str!("../../queries-src/injections.scm");
pub const LOCALS_QUERY: &str = include_str!("../../queries-src/locals.scm");
pub const HIGHLIGHTS_QUERY: &str = include_str!("../../queries-flavored/helix/highlights.scm");
pub const INJECTIONS_QUERY: &str = include_str!("../../queries-flavored/helix/injections.scm");
pub const LOCALS_QUERY: &str = include_str!("../../queries-flavored/helix/locals.scm");

// FIXME: add tags when available
// pub const TAGS_QUERY: &'static str = include_str!("../../queries-src/tags.scm");
Expand Down

0 comments on commit 613b3fd

Please sign in to comment.