]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix verbatim strings ending with `"`
authorFrederik Sdun <frederik.sdun@googlemail.com>
Wed, 7 Oct 2009 09:19:22 +0000 (11:19 +0200)
committerJürg Billeter <j@bitron.ch>
Thu, 8 Oct 2009 14:25:07 +0000 (16:25 +0200)
Signed-off-by: Frederik 'playya' Sdun <Frederik.Sdun@googlemail.com>
vala/valascanner.vala

index de90bb5f8aba4cb99d0ce4d44f687bab7d5614df..e1b00f014e250ba7888d779f939be8c6fc9ec138 100644 (file)
@@ -684,7 +684,7 @@ public class Vala.Scanner {
                                        token_length_in_chars = 6;
                                        current += 3;
                                        while (current < end - 4) {
-                                               if (current[0] == '"' && current[1] == '"' && current[2] == '"') {
+                                               if (current[0] == '"' && current[1] == '"' && current[2] == '"' && current[3] != '"') {
                                                        break;
                                                } else if (current[0] == '\n') {
                                                        current++;