]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
xgettext: Vala: Recognize the operators '*' and '*='.
authorBruno Haible <bruno@clisp.org>
Sat, 27 Jul 2024 16:47:22 +0000 (18:47 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 27 Jul 2024 17:05:51 +0000 (19:05 +0200)
* gettext-tools/src/x-vala.c (phase3_get): Recognize '*' and '*='.

gettext-tools/src/x-vala.c

index 38586838677031aad9222379419001959007f003..e3f3e3ab45119ba29da72f5b031d8d4c26acb14f 100644 (file)
@@ -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 '^':
           {