]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: Vala: Improve the support of the method .printf().
authorBruno Haible <bruno@clisp.org>
Sat, 27 Jul 2024 17:12:51 +0000 (19:12 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 27 Jul 2024 17:12:51 +0000 (19:12 +0200)
commitd17e3277992e112dc701272b83d4c8eacaabd568
treece206930c92872d1a783604abf4bda0a88c35a71
parentcacfa1915913efb630c46b51b2b220a8dd6ac392
xgettext: Vala: Improve the support of the method .printf().

* gettext-tools/src/x-vala.c (enum token_type_ty): New enum item
token_type_compound_assign.
(phase3_get): Recognize the compound assignment operators as
token_type_compound_assign instead of token_type_assign.
(extract_balanced): Invoke new_sub_region instead of inheriting_region. Invoke
set_format_flag_on_region instead of iterating through the region. When
encountering an operator, close the inner_region and open a new inner_region.
After 'return', use the passthrough_context_list_iterator, not the
null_context_list_iterator.
* gettext-tools/tests/xgettext-vala-6: Add many more test cases.
gettext-tools/src/x-vala.c
gettext-tools/tests/xgettext-vala-6