mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 10:57:30 +08:00
Allow using wgettext_fmt without comma from macros
Otherwise we'd get this error when using it from another macro Some(wgettext_fmt!($fmt $(, $args)*)) ^ missing tokens in macro arguments
This commit is contained in:
parent
7ec27617ae
commit
b92313b79d
|
@ -27,8 +27,8 @@ pub(crate) use wgettext;
|
|||
/// The result is a WString.
|
||||
macro_rules! wgettext_fmt {
|
||||
(
|
||||
$string:expr, // format string
|
||||
$($args:expr),* // list of expressions
|
||||
$string:expr // format string
|
||||
$(, $args:expr)* // list of expressions
|
||||
$(,)? // optional trailing comma
|
||||
) => {
|
||||
crate::wutil::sprintf!(&crate::wutil::wgettext!($string), $($args),*)
|
||||
|
|
Loading…
Reference in New Issue
Block a user