From 918bb9364f961b883c12bfed84b22900729cac02 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Wed, 8 Jul 2026 12:24:41 -0400 Subject: [PATCH] Fix a few proposal URLs (#7473) Fixup for #7245 --- toolchain/check/cpp/import.cpp | 2 +- toolchain/check/merge.cpp | 2 +- utils/tree_sitter/grammar.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/toolchain/check/cpp/import.cpp b/toolchain/check/cpp/import.cpp index 35e2163a2cb4..3814497cd87f 100644 --- a/toolchain/check/cpp/import.cpp +++ b/toolchain/check/cpp/import.cpp @@ -2359,7 +2359,7 @@ static auto LookupBuiltinName(Context& context, SemIR::LocId loc_id, const clang::ASTContext& ast_context = context.ast_context(); // List of types based on - // https://github.com/carbon-language/carbon-lang/blob/trunk/proposals/p005448.md#details + // https://github.com/carbon-language/carbon-lang/blob/trunk/proposals/p005448-carbon-c-interop-primitive-types.md#details auto builtin_type = llvm::StringSwitch(*name) .Case("signed_char", ast_context.SignedCharTy) diff --git a/toolchain/check/merge.cpp b/toolchain/check/merge.cpp index 83a96c0499c3..8f0f4194b78e 100644 --- a/toolchain/check/merge.cpp +++ b/toolchain/check/merge.cpp @@ -484,7 +484,7 @@ static auto CheckRedeclParamSyntax(Context& context, // redeclaration matching rule from proposal #3763. // // Skip difference if it is `Self as` vs. `as` in an `impl` declaration. - // https://github.com/carbon-language/carbon-lang/blob/trunk/proposals/p003763.md#redeclarations + // https://github.com/carbon-language/carbon-lang/blob/trunk/proposals/p003763-matching-redeclarations.md#redeclarations if (new_node_kind == Parse::NodeKind::ImplDefaultSelfAs && prev_node_kind == Parse::NodeKind::SelfTypeNameExpr && context.parse_tree().node_kind(prev_iter[1]) == diff --git a/utils/tree_sitter/grammar.js b/utils/tree_sitter/grammar.js index 97260fced430..16d8d3ca65fe 100644 --- a/utils/tree_sitter/grammar.js +++ b/utils/tree_sitter/grammar.js @@ -75,7 +75,7 @@ module.exports = grammar({ comment: ($) => token(seq('//', /.*/)), // NOTE: this must be before ident rule to increase its priority. - // https://github.com/carbon-language/carbon-lang/blob/trunk/proposals/p002015.md#syntax + // https://github.com/carbon-language/carbon-lang/blob/trunk/proposals/p002015-numeric-type-literal-syntax.md#syntax numeric_type_literal: ($) => /[iuf][1-9][0-9]*/, ident: ($) => /[A-Za-z_][A-Za-z0-9_]*/,