]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
xgettext: Vala: Fix recognition of the '%' and '^' operators.
authorBruno Haible <bruno@clisp.org>
Sat, 27 Jul 2024 16:59:05 +0000 (18:59 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 27 Jul 2024 17:05:56 +0000 (19:05 +0200)
* gettext-tools/src/x-vala.c (phase3_get): Classify '%' and '^' as arithmetic
operators, not as logic operators.

gettext-tools/src/x-vala.c

index e3f3e3ab45119ba29da72f5b031d8d4c26acb14f..1c503168e2a78e5e0a0487e4c071ed5e1c7915e9 100644 (file)
@@ -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;
           }