]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: D: Allow comments between the parts of concatenated string literals.
authorBruno Haible <bruno@clisp.org>
Wed, 23 Apr 2025 17:50:04 +0000 (19:50 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 23 Apr 2025 17:50:04 +0000 (19:50 +0200)
commit91d82d18e466eebb8c26c23d9bc73bffbcf18edf
tree903c5bfe7722988a17fb49daec69c4b0d46ceb3b
parent72a90baa2d66daf0f98f406d268268d895f723a2
xgettext: D: Allow comments between the parts of concatenated string literals.

* gettext-tools/src/x-d.c (is_add_expression_with_tilde): New function.
(is_string_literal, string_literal_accumulate_pieces): Use it.
* gettext-tools/tests/xgettext-d-2: Add another test case regarding string
concatenation.
gettext-tools/src/x-d.c
gettext-tools/tests/xgettext-d-2