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
|
|
@ -153,7 +153,7 @@ struct Generate {
|
|||
#[derive(Args)]
|
||||
#[command(alias = "b")]
|
||||
struct Build {
|
||||
/// Build a WASM module instead of a dynamic library
|
||||
/// Build a Wasm module instead of a dynamic library
|
||||
#[arg(short, long)]
|
||||
pub wasm: bool,
|
||||
/// No longer used.
|
||||
|
|
@ -205,7 +205,7 @@ struct Parse {
|
|||
/// Produce the log.html file with debug graphs
|
||||
#[arg(long, short = 'D')]
|
||||
pub debug_graph: bool,
|
||||
/// Compile parsers to wasm instead of native dynamic libraries
|
||||
/// Compile parsers to Wasm instead of native dynamic libraries
|
||||
#[arg(long)]
|
||||
pub wasm: bool,
|
||||
/// Output the parse data with graphviz dot
|
||||
|
|
@ -302,7 +302,7 @@ struct Test {
|
|||
/// Produce the log.html file with debug graphs
|
||||
#[arg(long, short = 'D')]
|
||||
pub debug_graph: bool,
|
||||
/// Compile parsers to wasm instead of native dynamic libraries
|
||||
/// Compile parsers to Wasm instead of native dynamic libraries
|
||||
#[arg(long)]
|
||||
pub wasm: bool,
|
||||
/// Open `log.html` in the default browser, if `--debug-graph` is supplied
|
||||
|
|
@ -520,7 +520,7 @@ struct Playground {
|
|||
/// Don't open in default browser
|
||||
#[arg(long, short)]
|
||||
pub quiet: bool,
|
||||
/// Path to the directory containing the grammar and wasm files
|
||||
/// Path to the directory containing the grammar and Wasm files
|
||||
#[arg(long)]
|
||||
pub grammar_path: Option<PathBuf>,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ fn test_load_multiple_wasm_languages() {
|
|||
let mut query_cursor = QueryCursor::new();
|
||||
|
||||
// First, parse with the store that originally loaded the languages.
|
||||
// Then parse with a new parser and wasm store, so that the languages
|
||||
// Then parse with a new parser and Wasm store, so that the languages
|
||||
// are added one-by-one, in between parses.
|
||||
for mut parser in [parser, parser2] {
|
||||
for _ in 0..2 {
|
||||
|
|
@ -226,7 +226,7 @@ fn test_load_wasm_errors() {
|
|||
store.load_language("rust", bad_wasm).unwrap_err(),
|
||||
WasmError {
|
||||
kind: WasmErrorKind::Parse,
|
||||
message: "failed to parse dylink section of wasm module".into(),
|
||||
message: "failed to parse dylink section of Wasm module".into(),
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ use wasmparser::Parser;
|
|||
|
||||
pub fn load_language_wasm_file(language_dir: &Path) -> Result<(String, Vec<u8>)> {
|
||||
let grammar_name = get_grammar_name(language_dir)
|
||||
.with_context(|| "Failed to get wasm filename")
|
||||
.with_context(|| "Failed to get Wasm filename")
|
||||
.unwrap();
|
||||
let wasm_filename = format!("tree-sitter-{grammar_name}.wasm");
|
||||
let contents = fs::read(language_dir.join(&wasm_filename)).with_context(|| {
|
||||
|
|
@ -61,7 +61,7 @@ pub fn compile_language_to_wasm(
|
|||
)?;
|
||||
|
||||
// Exit with an error if the external scanner uses symbols from the
|
||||
// C or C++ standard libraries that aren't available to wasm parsers.
|
||||
// C or C++ standard libraries that aren't available to Wasm parsers.
|
||||
let stdlib_symbols = wasm_stdlib_symbols().collect::<Vec<_>>();
|
||||
let dylink_symbols = [
|
||||
"__indirect_function_table",
|
||||
|
|
@ -100,7 +100,7 @@ pub fn compile_language_to_wasm(
|
|||
if !missing_symbols.is_empty() {
|
||||
Err(anyhow!(
|
||||
concat!(
|
||||
"This external scanner uses a symbol that isn't available to wasm parsers.\n",
|
||||
"This external scanner uses a symbol that isn't available to Wasm parsers.\n",
|
||||
"\n",
|
||||
"Missing symbols:\n",
|
||||
" {}\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue