]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: Rust: Recognize 'gettextrs::gettext' invocations like 'gettext'
authorBruno Haible <bruno@clisp.org>
Sun, 12 Oct 2025 14:31:10 +0000 (16:31 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 12 Oct 2025 14:32:24 +0000 (16:32 +0200)
commit4d64f8c47129a7cc442a9e33b2e50ee029445608
tree33bffdc6a11ec7f1c14336af8342d83ccee5610e
parent731022e254681712930009ee7cd8e11d14db4078
xgettext: Rust: Recognize 'gettextrs::gettext' invocations like 'gettext'
invocations.

Reported by Schmiddiii <gnu-savannah@schmidhuberj.de>
at <https://savannah.gnu.org/bugs/?67601>.

* gettext-tools/src/x-rust.c (ts_symbol_scoped_identifier): New variable.
(extract_from_function_call): Accept a scoped_identifier as first argument.
(extract_from_node): Allow a scoped_identifier as callee.
(extract_rust): Initialize ts_symbol_scoped_identifier.
* gettext-tools/tests/xgettext-rust-1: Add another test case.
* gettext-tools/tests/xgettext-rust-6: Likewise.
* NEWS: Mention the fix.
NEWS
gettext-tools/src/x-rust.c
gettext-tools/tests/xgettext-rust-1
gettext-tools/tests/xgettext-rust-6