summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/xgettext-vala-1
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2014-06-03 06:04:28 +0900
committerDaiki Ueno <ueno@gnu.org>2014-06-03 06:04:28 +0900
commit0d5a75817ada8f531e019715eb9fa2862aefefea (patch)
tree9d4858b678bff2140545d65f27a9fcdc1d903c9a /gettext-tools/tests/xgettext-vala-1
parent317449061ac9b2ed2a24fa51de1bc75278ae8497 (diff)
downloadexternal_gettext-0d5a75817ada8f531e019715eb9fa2862aefefea.zip
external_gettext-0d5a75817ada8f531e019715eb9fa2862aefefea.tar.gz
external_gettext-0d5a75817ada8f531e019715eb9fa2862aefefea.tar.bz2
vala: Don't elide comments while parsing string literal
* x-vala.c (phase3_get): Use phase1_getc to read characters inside a string literal.
Diffstat (limited to 'gettext-tools/tests/xgettext-vala-1')
-rwxr-xr-xgettext-tools/tests/xgettext-vala-18
1 files changed, 8 insertions, 0 deletions
diff --git a/gettext-tools/tests/xgettext-vala-1 b/gettext-tools/tests/xgettext-vala-1
index b40c7ff..b59670b 100755
--- a/gettext-tools/tests/xgettext-vala-1
+++ b/gettext-tools/tests/xgettext-vala-1
@@ -22,6 +22,8 @@ int main (string[] args) {
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
@@ -70,6 +72,9 @@ msgstr ""
msgid "Extract this ⑤th string"
msgstr ""
+
+msgid "Extract this //sixth string"
+msgstr ""
EOF
: ${DIFF=diff}
@@ -130,6 +135,9 @@ msgstr ""
msgid "Extract this ⑤th string"
msgstr ""
+
+msgid "Extract this //sixth string"
+msgstr ""
EOF
${DIFF} xg-vala-1.all.ok xg-vala-1.pot