From a24c903f5fb12eac2afcbbbee7f71ed91a04b863 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 11 Feb 2025 09:25:57 +0100 Subject: [PATCH] xgettext: Rust: Fix comments. * gettext-tools/src/x-rust.c: Fix reference to the Rust specification. --- gettext-tools/src/x-rust.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gettext-tools/src/x-rust.c b/gettext-tools/src/x-rust.c index 0e1f86c03..2440bb9b8 100644 --- a/gettext-tools/src/x-rust.c +++ b/gettext-tools/src/x-rust.c @@ -57,9 +57,9 @@ extern const TSLanguage *tree_sitter_rust (void); -/* The Rust syntax is defined in https://doc.rust-lang.org/1.6.0/reference.html. +/* The Rust syntax is defined in https://doc.rust-lang.org/1.84.0/reference/index.html. String syntax: - https://doc.rust-lang.org/1.6.0/reference.html#character-and-string-literals + https://doc.rust-lang.org/1.84.0/reference/tokens.html#character-and-string-literals */ #define DEBUG_RUST 0 @@ -388,7 +388,7 @@ string_literal_value (TSNode node, const char *contents) { case '\\': case '"': - case '\'': /* Not documented, but accepted by rustc. */ + case '\'': sb_xappend1 (&buffer, escape_start[1]); break; case 'n': -- 2.47.3