Skip to content

Commit

Permalink
fix yak-sitter doctest and add yak-sitter to tests and publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakobeha committed Jul 18, 2023
1 parent f08011e commit ebe1a08
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
set -e
test -z "$(git status --porcelain)" || (echo "Working directory is not clean" && exit 1)
./test.sh || (echo "Tests failed" && exit 1)
echo "*** PUBLISHING yak-sitter"
cargo publish -p yak-sitter
echo "*** PUBLISHING type-sitter-gen"
cargo publish -p type-sitter-gen
echo "*** PUBLISHING type-sitter-lib"
Expand Down
2 changes: 2 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
set -e
echo "*** TESTING yak-sitter"
cargo test -p yak-sitter
echo "*** TESTING type-sitter-gen"
cargo test -p type-sitter-gen
echo "*** TESTING type-sitter-lib"
Expand Down
2 changes: 1 addition & 1 deletion yak-sitter/src/define_custom_wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ macro_rules! define_custom_wrapper {
pub type QueryMatch<'query, 'tree> = $crate::QueryMatch<'query, 'tree, $Custom>;
pub type QueryCaptures<'query, 'tree> = $crate::QueryCaptures<'query, 'tree, $Custom>;
pub type QueryCapture<'query, 'tree> = $crate::QueryCapture<'query, 'tree, $Custom>;
pub type SubTree<'tree> = $crate::SubTree<'tree, $Custom>;
pub type SubTree<'tree> = $crate::SubTree<$Custom>;
};
}

0 comments on commit ebe1a08

Please sign in to comment.