+2014-06-03 Daiki Ueno <ueno@gnu.org>
+
+ vala: Don't elide comments while parsing string literal
+ * x-vala.c (phase3_get): Use phase1_getc to read characters inside
+ a string literal.
+
2014-06-02 Daiki Ueno <ueno@gnu.org>
msgl-check: Treat missing header errors as warnings
bufpos = 0;
for (;;)
{
- c = phase2_getc ();
+ /* Use phase 1, because phase 2 elides comments. */
+ c = phase1_getc ();
if (c == EOF)
break;
if (c == '"')
{
- int c2 = phase2_getc ();
+ int c2 = phase1_getc ();
if (c2 == '"')
{
- int c3 = phase2_getc ();
+ int c3 = phase1_getc ();
if (c3 == '"')
break;
- phase2_ungetc (c3);
+ phase1_ungetc (c3);
}
- phase2_ungetc (c2);
+ phase1_ungetc (c2);
}
if (bufpos >= bufmax)
{
bufpos = 0;
for (;;)
{
- c = phase2_getc ();
+ c = phase1_getc ();
if (last_was_backslash)
{
last_was_backslash = false;
%s:%d: warning: unterminated string literal"),
logical_file_name, line_number - 1);
error_with_progname = true;
- phase2_ungetc ('\n');
+ phase1_ungetc ('\n');
break;
case EOF: case '"':
break;
+2014-06-03 Daiki Ueno <ueno@gnu.org>
+
+ * xgettext-vala-1: Test comment-like string inside a string literal.
+
2014-06-02 Daiki Ueno <ueno@gnu.org>
* msgfmt-10: Update after error checking behaviro change.
var s5 = _("Extract this \u2464th string");
var s6 = /_("This is a regex literal and must not be extracted!")/i;
+
+ var s7 = _("Extract this //sixth string");
return 0;
}
EOF
msgid "Extract this ⑤th string"
msgstr ""
+
+msgid "Extract this //sixth string"
+msgstr ""
EOF
: ${DIFF=diff}
msgid "Extract this ⑤th string"
msgstr ""
+
+msgid "Extract this //sixth string"
+msgstr ""
EOF
${DIFF} xg-vala-1.all.ok xg-vala-1.pot