]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: awk: Recognize string concatenation.
authorBruno Haible <bruno@clisp.org>
Wed, 11 Sep 2024 12:09:34 +0000 (14:09 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 11 Sep 2024 12:09:34 +0000 (14:09 +0200)
commitd0f044719d21af08295ef9d139e5ce29dee83aab
treea0240b3696a10158b72534b6a82b2b345032961b
parent29f693f18c570fffe23f8727e0c44479c07f64c6
xgettext: awk: Recognize string concatenation.

* gettext-tools/src/x-awk.c (SIZEOF): New macro.
(phase3_pushback, phase3_pushback_length): New variables.
(phase3_get): Renamed from x_awk_lex. Return pushed-back token if present.
(phase3_unget): New function.
(string_concat_free1): New function.
(phase4_get): New function.
(extract_parenthesized): Invoke phase4_get instead of x_awk_lex.
(extract_awk): Initialize phase3_pushback_length.
* gettext-tools/tests/xgettext-awk-1: Add test cases for string concatenation.
* NEWS: Mention the improvement.
NEWS
gettext-tools/src/x-awk.c
gettext-tools/tests/xgettext-awk-1