docs: change WASM/wasm to Wasm
That is the official capitalisation.
This commit is contained in:
parent
7bc8f76667
commit
88e0b4cea4
36 changed files with 122 additions and 122 deletions
|
|
@ -195,7 +195,7 @@ pub fn run_wasm(args: &BuildWasm) -> Result<()> {
|
|||
fn build_wasm(cmd: &mut Command) -> Result<()> {
|
||||
bail_on_err(
|
||||
&cmd.spawn()?.wait_with_output()?,
|
||||
"Failed to compile the Tree-sitter WASM library",
|
||||
"Failed to compile the Tree-sitter Wasm library",
|
||||
)?;
|
||||
|
||||
Ok(())
|
||||
|
|
@ -239,7 +239,7 @@ pub fn run_wasm_stdlib() -> Result<()> {
|
|||
.arg("lib/src/wasm/stdlib.c")
|
||||
.output()?;
|
||||
|
||||
bail_on_err(&output, "Failed to compile the Tree-sitter WASM stdlib")?;
|
||||
bail_on_err(&output, "Failed to compile the Tree-sitter Wasm stdlib")?;
|
||||
|
||||
let xxd = Command::new("xxd")
|
||||
.args(["-C", "-i", "stdlib.wasm"])
|
||||
|
|
@ -247,7 +247,7 @@ pub fn run_wasm_stdlib() -> Result<()> {
|
|||
|
||||
bail_on_err(
|
||||
&xxd,
|
||||
"Failed to run xxd on the compiled Tree-sitter WASM stdlib",
|
||||
"Failed to run xxd on the compiled Tree-sitter Wasm stdlib",
|
||||
)?;
|
||||
|
||||
fs::write("lib/src/wasm/wasm-stdlib.h", xxd.stdout)?;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ const EXCLUDES: [&str; 27] = [
|
|||
"ts_node_eq",
|
||||
"ts_tree_cursor_current_field_name",
|
||||
"ts_lookahead_iterator_current_symbol_name",
|
||||
// Not used in wasm
|
||||
// Not used in Wasm
|
||||
"ts_init",
|
||||
"ts_set_allocator",
|
||||
"ts_parser_set_cancellation_flag",
|
||||
|
|
@ -126,7 +126,7 @@ fn check_wasm_exports() -> Result<()> {
|
|||
|
||||
if !missing.is_empty() {
|
||||
Err(anyhow!(format!(
|
||||
"Unmatched wasm exports:\n{}",
|
||||
"Unmatched Wasm exports:\n{}",
|
||||
missing.join("\n")
|
||||
)))?;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ pub fn run_fixtures(args: &GenerateFixtures) -> Result<()> {
|
|||
|
||||
println!(
|
||||
"Regenerating {grammar_name} parser{}",
|
||||
if args.wasm { " to wasm" } else { "" }
|
||||
if args.wasm { " to Wasm" } else { "" }
|
||||
);
|
||||
|
||||
if args.wasm {
|
||||
|
|
|
|||
|
|
@ -22,14 +22,14 @@ use semver::Version;
|
|||
enum Commands {
|
||||
/// Runs `cargo benchmark` with some optional environment variables set.
|
||||
Benchmark(Benchmark),
|
||||
/// Compile the Tree-sitter WASM library. This will create two files in the
|
||||
/// Compile the Tree-sitter Wasm library. This will create two files in the
|
||||
/// `lib/binding_web` directory: `web-tree-sitter.js` and `web-tree-sitter.wasm`.
|
||||
BuildWasm(BuildWasm),
|
||||
/// Compile the Tree-sitter WASM standard library.
|
||||
/// Compile the Tree-sitter Wasm standard library.
|
||||
BuildWasmStdlib,
|
||||
/// Bumps the version of the workspace.
|
||||
BumpVersion(BumpVersion),
|
||||
/// Checks that WASM exports are synced.
|
||||
/// Checks that Wasm exports are synced.
|
||||
CheckWasmExports(CheckWasmExports),
|
||||
/// Runs `cargo clippy`.
|
||||
Clippy(Clippy),
|
||||
|
|
@ -41,11 +41,11 @@ enum Commands {
|
|||
GenerateBindings,
|
||||
/// Generates the fixtures for testing tree-sitter.
|
||||
GenerateFixtures(GenerateFixtures),
|
||||
/// Generate the list of exports from Tree-sitter WASM files.
|
||||
/// Generate the list of exports from Tree-sitter Wasm files.
|
||||
GenerateWasmExports,
|
||||
/// Run the test suite
|
||||
Test(Test),
|
||||
/// Run the WASM test suite
|
||||
/// Run the Wasm test suite
|
||||
TestWasm,
|
||||
/// Upgrade the wasmtime dependency.
|
||||
UpgradeWasmtime(UpgradeWasmtime),
|
||||
|
|
@ -120,7 +120,7 @@ struct Clippy {
|
|||
|
||||
#[derive(Args)]
|
||||
struct GenerateFixtures {
|
||||
/// Generates the parser to WASM
|
||||
/// Generates the parser to Wasm
|
||||
#[arg(long, short)]
|
||||
wasm: bool,
|
||||
}
|
||||
|
|
@ -156,7 +156,7 @@ struct Test {
|
|||
/// Don't capture the output
|
||||
#[arg(long)]
|
||||
nocapture: bool,
|
||||
/// Enable the wasm tests.
|
||||
/// Enable the Wasm tests.
|
||||
#[arg(long, short)]
|
||||
wasm: bool,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue