]> ocean-lang.org Git - ocean/commitdiff
oceani: accept MULTI_STRING as well as STRING
authorNeilBrown <neil@brown.name>
Sun, 12 Oct 2014 23:38:05 +0000 (10:38 +1100)
committerNeilBrown <neil@brown.name>
Sun, 12 Oct 2014 23:38:05 +0000 (10:38 +1100)
The scanner produces two types of strings - we need to accept
them both.

Signed-off-by: NeilBrown <neil@brown.name>
csrc/oceani.mdc

index 784c680493d9170243d94038a849556a2e439f91..8997785611e23721220bcacae040764b46a138ce 100644 (file)
@@ -726,6 +726,11 @@ an executable.
                        $0->val.vtype = Vstr;
                        string_parse(&$1, '\\', &$0->val.str, $0->val.tail);
                        }$
+               | MULTI_STRING ${
+                       $0 = new(val);
+                       $0->val.vtype = Vstr;
+                       string_parse(&$1, '\\', &$0->val.str, $0->val.tail);
+                       }$
 
 ###### print exec cases
        case Xval: