]> git.ipfire.org Git - thirdparty/gettext.git/commit
c++: Make C++11 raw string recognition stricter
authorDaiki Ueno <ueno@gnu.org>
Tue, 13 Jan 2015 03:09:08 +0000 (12:09 +0900)
committerDaiki Ueno <ueno@gnu.org>
Tue, 13 Jan 2015 03:09:08 +0000 (12:09 +0900)
commit383b5ba48b20bc6583ee63f13741dd84e96c5002
tree37a0ec8f1e517c282fe2dc506a4498a052f9f271
parent4dfe1c4609a5c600112cd83a4d3af5d4e4d402c7
c++: Make C++11 raw string recognition stricter

Reported by Vaclav Slavik at:
<http://savannah.gnu.org/bugs/?43970>.
* gettext-tools/src/x-c.c (struct token_ty): New field 'escape'.
(struct xgettext_token_ty): New field 'escape'.
(phase5_get): Recognize raw strings more strictly.  Set 'escape'
field of token appropriately for string literals.
(extract_parenthesized): Respect 'escape' field of token.

* gettext-tools/tests/xgettext-c-20: Adjust to the latest xgettext C++
scanner change; don't accept unbalanced prefix in raw string literal.
gettext-tools/src/ChangeLog
gettext-tools/src/x-c.c
gettext-tools/tests/ChangeLog
gettext-tools/tests/xgettext-c-20