From: Bruno Haible Date: Sun, 29 Sep 2019 12:35:37 +0000 (+0200) Subject: xgettext: Fix parsing of XML tags. X-Git-Tag: v0.20.2~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5230175aefcf264828cd0fdf36d37c0b1a476338;p=thirdparty%2Fgettext.git xgettext: Fix parsing of XML tags. * gettext-tools/src/x-javascript.c (phase5_get): Fix lexical_context after decrementing xml_element_depth. --- diff --git a/gettext-tools/src/x-javascript.c b/gettext-tools/src/x-javascript.c index b34d92eaa..e13d8d8b0 100644 --- a/gettext-tools/src/x-javascript.c +++ b/gettext-tools/src/x-javascript.c @@ -1325,7 +1325,7 @@ phase5_get (token_ty *tp) break; case lc_xml_close_tag: - if (xml_element_depth-- > 0) + if (--xml_element_depth > 0) lexical_context = lc_xml_content; else lexical_context = lc_outside; @@ -1350,7 +1350,7 @@ phase5_get (token_ty *tp) c = phase2_getc (); if (c == '>') { - if (xml_element_depth-- > 0) + if (--xml_element_depth > 0) lexical_context = lc_xml_content; else lexical_context = lc_outside;