diff options
author | Daiki Ueno <ueno@gnu.org> | 2013-11-20 12:41:20 +0900 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2013-12-04 19:53:11 +0900 |
commit | 992d6a594fa5ca3e914bc3f3f18431caee657db2 (patch) | |
tree | 4b045e79e21a275b0f7bcc5c6eb4e4669b1f7cc8 /gnulib | |
parent | 4142e63b88032c25572fd50b6518dadcfeee2c15 (diff) | |
download | external_gettext-992d6a594fa5ca3e914bc3f3f18431caee657db2.zip external_gettext-992d6a594fa5ca3e914bc3f3f18431caee657db2.tar.gz external_gettext-992d6a594fa5ca3e914bc3f3f18431caee657db2.tar.bz2 |
xgettext: Add E4X support to JavaScript scanner
Reported by Piotr Drąg at: <https://savannah.gnu.org/bugs/?40125>.
* src/xgettext.h (enum lexical_context_ty): New enumeration items
lc_xml_open_tag, lc_xml_close_tag, lc_xml_content.
* src/x-javascript.c (phase5_scan_xml_markup): New
function.
(phase5_get): Handle '<', '>', '/', '=', '{', and '}' specially
to support E4X.
(enum token_type_ty): New enumeration item token_type_equal.
(xml_element_depth): New variable.
(inside_embedded_in_xml): New variable.
(extract_javascript): Initialize those variables.
* tests/Makefile.am (TESTS): Add xgettext-javascript-6.
* tests/xgettext-javascript-6: New file.
Diffstat (limited to 'gnulib')
0 files changed, 0 insertions, 0 deletions