From: Bruno Haible Date: Sat, 27 Jul 2024 16:59:05 +0000 (+0200) Subject: xgettext: Vala: Fix recognition of the '%' and '^' operators. X-Git-Tag: v0.23~223 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a64870f6a0a753146db26053da8a292cd20bfdb;p=thirdparty%2Fgettext.git xgettext: Vala: Fix recognition of the '%' and '^' operators. * gettext-tools/src/x-vala.c (phase3_get): Classify '%' and '^' as arithmetic operators, not as logic operators. --- diff --git a/gettext-tools/src/x-vala.c b/gettext-tools/src/x-vala.c index e3f3e3ab4..1c503168e 100644 --- a/gettext-tools/src/x-vala.c +++ b/gettext-tools/src/x-vala.c @@ -1120,7 +1120,7 @@ phase3_get (token_ty *tp) else { phase2_ungetc (c2); - tp->type = last_token_type = token_type_logic_operator; + tp->type = last_token_type = token_type_arithmetic_operator; } return; }