From 3456330fe9a0d7c45288c7695b1f94d8914c5d7c Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Fri, 3 Jan 2025 15:04:15 -0500 Subject: [PATCH] fix: update outdated links --- cli/loader/src/lib.rs | 4 ++-- cli/npm/dsl.d.ts | 6 +++--- cli/src/templates/lib.rs | 2 +- docs/src/assets/schemas/grammar.schema.json | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cli/loader/src/lib.rs b/cli/loader/src/lib.rs index d88ca5cc..cfdcd8d5 100644 --- a/cli/loader/src/lib.rs +++ b/cli/loader/src/lib.rs @@ -937,7 +937,7 @@ impl Loader { {} - You can read more about this at https://tree-sitter.github.io/tree-sitter/creating-parsers#external-scanners + You can read more about this at https://tree-sitter.github.io/tree-sitter/creating-parsers/4-external-scanners "}, missing, ))); @@ -1578,7 +1578,7 @@ impl LanguageConfiguration<'_> { eprintln!( indoc! {" Warning: you should add a `{}` entry pointing to the highlights path in the `tree-sitter` object in the grammar's tree-sitter.json file. - See more here: https://tree-sitter.github.io/tree-sitter/syntax-highlighting#query-paths + See more here: https://tree-sitter.github.io/tree-sitter/3-syntax-highlighting#query-paths "}, default_path.replace(".scm", "") ); diff --git a/cli/npm/dsl.d.ts b/cli/npm/dsl.d.ts index 174f902f..3deda087 100644 --- a/cli/npm/dsl.d.ts +++ b/cli/npm/dsl.d.ts @@ -105,7 +105,7 @@ interface Grammar< * @param $ grammar rules * @param previous array of externals from the base schema, if any * - * @see https://tree-sitter.github.io/tree-sitter/creating-parsers#external-scanners + * @see https://tree-sitter.github.io/tree-sitter/creating-parsers/4-external-scanners */ externals?: ( $: Record>, @@ -143,7 +143,7 @@ interface Grammar< * * @param $ grammar rules * - * @see https://tree-sitter.github.io/tree-sitter/using-parsers#static-node-types + * @see https://tree-sitter.github.io/tree-sitter/using-parsers/6-static-node-types */ supertypes?: ( $: GrammarSymbols, @@ -156,7 +156,7 @@ interface Grammar< * * @param $ grammar rules * - * @see https://tree-sitter.github.io/tree-sitter/creating-parsers#keyword-extraction + * @see https://tree-sitter.github.io/tree-sitter/creating-parsers/3-writing-the-grammar#keyword-extraction */ word?: ($: GrammarSymbols) => RuleOrLiteral; } diff --git a/cli/src/templates/lib.rs b/cli/src/templates/lib.rs index 4e3522ae..b1a1af2d 100644 --- a/cli/src/templates/lib.rs +++ b/cli/src/templates/lib.rs @@ -31,7 +31,7 @@ pub const LANGUAGE: LanguageFn = unsafe { LanguageFn::from_raw(tree_sitter_PARSE /// The content of the [`node-types.json`][] file for this grammar. /// -/// [`node-types.json`]: https://tree-sitter.github.io/tree-sitter/using-parsers#static-node-types +/// [`node-types.json`]: https://tree-sitter.github.io/tree-sitter/using-parsers/6-static-node-types pub const NODE_TYPES: &str = include_str!("../../src/node-types.json"); // NOTE: uncomment these to include any queries that this grammar contains: diff --git a/docs/src/assets/schemas/grammar.schema.json b/docs/src/assets/schemas/grammar.schema.json index 19940d15..12ed4d65 100644 --- a/docs/src/assets/schemas/grammar.schema.json +++ b/docs/src/assets/schemas/grammar.schema.json @@ -107,7 +107,7 @@ }, "supertypes": { - "description": "A list of hidden rule names that should be considered supertypes in the generated node types file. See https://tree-sitter.github.io/tree-sitter/using-parsers#static-node-types.", + "description": "A list of hidden rule names that should be considered supertypes in the generated node types file. See https://tree-sitter.github.io/tree-sitter/using-parsers/6-static-node-types.", "type": "array", "uniqueItems": true, "items": {