]> gitweb.factorcode.org Git - factor.git/commitdiff
strings.parser: use single quotes around got.
authorJohn Benediktsson <mrjbq7@gmail.com>
Mon, 7 Dec 2020 21:17:47 +0000 (13:17 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 7 Dec 2020 21:17:47 +0000 (13:17 -0800)
core/strings/parser/parser.factor

index 406f6879c9fd05a9850b4fb8a922b6379b2b23eb..6bf46d88c33c3673c949bc4a67f94f9ba136ad26 100644 (file)
@@ -123,7 +123,7 @@ DEFER: (parse-string)
         dup current-char forbid-tab {
             { CHAR: \s [ advance-char ] }
             { f [ drop ] }
-            [ "[space]" swap 1string unexpected ]
+            [ "[space]" swap 1string "'" dup surround unexpected ]
         } case drop
     ] if ;
  
@@ -138,7 +138,7 @@ DEFER: (parse-string)
             (parse-string)
         ] if*
     ] [
-        "\"" "[eof]" unexpected
+        "'\"'" "[eof]" unexpected
     ] if ;
 
 PRIVATE>