Skip to content

Commit 355d7dd

Browse files
committed
Grab tree-sitter-cpp version when generating the mozcpp grammar, not the tree-sitter-mozcpp version
1 parent e16b61e commit 355d7dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generate-grammars/generate-mozcpp.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ TS_CPP_CRATE="tree-sitter-cpp"
1212
JSON_CRATE_FILENAME=".cargo_vcs_info.json"
1313

1414
# Get the current tree-sitter-cpp crate version from the tree-sitter-mozcpp grammar
15-
TS_CPP_VERSION=`grep tree-sitter-mozcpp Cargo.toml | cut -f2 -d "," | cut -f2 -d "=" | tr -d ' ' | tr -d } | tr -d \"`
15+
TS_CPP_VERSION=`grep $TS_CPP_CRATE Cargo.toml | cut -f2 -d "," | cut -f2 -d "=" | tr -d ' ' | tr -d } | tr -d \"`
1616

1717
# Name assigned to the compressed binary crate downloaded from crates.io
1818
CRATE_OUTPUT="$TS_CPP_CRATE-download.gz"

0 commit comments

Comments
 (0)