From: Bruno Haible Date: Tue, 11 Feb 2025 08:25:57 +0000 (+0100) Subject: xgettext: Rust: Fix comments. X-Git-Tag: v0.24~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a24c903f5fb12eac2afcbbbee7f71ed91a04b863;p=thirdparty%2Fgettext.git xgettext: Rust: Fix comments. * gettext-tools/src/x-rust.c: Fix reference to the Rust specification. --- 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':