From: Bruno Haible Date: Sat, 27 Jul 2024 16:47:22 +0000 (+0200) Subject: xgettext: Vala: Recognize the operators '*' and '*='. X-Git-Tag: v0.23~224 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c79e05a446e38763b4bebb9a628a3d011c8da4a5;p=thirdparty%2Fgettext.git xgettext: Vala: Recognize the operators '*' and '*='. * gettext-tools/src/x-vala.c (phase3_get): Recognize '*' and '*='. --- diff --git a/gettext-tools/src/x-vala.c b/gettext-tools/src/x-vala.c index 385868386..e3f3e3ab4 100644 --- a/gettext-tools/src/x-vala.c +++ b/gettext-tools/src/x-vala.c @@ -1098,6 +1098,19 @@ phase3_get (token_ty *tp) return; } + case '*': + { + int c2 = phase2_getc (); + if (c2 == '=') + tp->type = last_token_type = token_type_assign; + else + { + phase2_ungetc (c2); + tp->type = last_token_type = token_type_arithmetic_operator; + } + return; + } + case '%': case '^': {