]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: Rust: Support --keyword option with a qualified name for macros.
authorBruno Haible <bruno@clisp.org>
Mon, 11 May 2026 15:08:06 +0000 (17:08 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 11 May 2026 15:19:29 +0000 (17:19 +0200)
commit20f8cbabda9baec7d16acc8b9893f0da48c59cff
treea89ddc333e1d3e9d5d559458f4934b4a386388b8
parente88c7485f06ca470e52c1dfe7456b67badadc89a
xgettext: Rust: Support --keyword option with a qualified name for macros.

Reported by Lucas Baudin <lbaudin@gnome.org>
at <https://savannah.gnu.org/bugs/?68297>.

* gettext-tools/src/x-rust.c (extract_from_function_call_like): Use the
accumulated qualified name also for macro invocations.
(extract_from_node): Allow generic identifiers also for macro invocations.
* gettext-tools/tests/xgettext-rust-9: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
gettext-tools/src/x-rust.c
gettext-tools/tests/Makefile.am
gettext-tools/tests/xgettext-rust-9 [new file with mode: 0755]