]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: Scheme: Recognize datum-comments.
authorBruno Haible <bruno@clisp.org>
Fri, 16 Aug 2024 20:32:58 +0000 (22:32 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 16 Aug 2024 20:32:58 +0000 (22:32 +0200)
commit2c8f43903505eb1563bd62ab2ef1ff54cb44eddc
tree2370765650392fe357d73cd8999f8f55dcd3b08b
parentee7dfc338f8ad53d416f7935a914d5cdf7bc5ed0
xgettext: Scheme: Recognize datum-comments.

Reported by Florent Angly <florent.angly@gmail.com>
at <https://savannah.gnu.org/bugs/?61882>.

* gettext-tools/src/x-scheme.c (datum_comment_nesting_depth): New variable.
(read_object): Omit the normal processing of list elements if
datum_comment_nesting_depth is non-zero. Recognize datum comments.
(extract_whole_file): Initialize datum_comment_nesting_depth.
* gettext-tools/tests/xgettext-scheme-1: Add a test case with a datum comment.
* NEWS: Mention the change.
NEWS
gettext-tools/src/x-scheme.c
gettext-tools/tests/xgettext-scheme-1