]> gitweb.factorcode.org Git - factor.git/commitdiff
Revert "parser: disallow quotation in word names"
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 17 Aug 2023 22:29:10 +0000 (15:29 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 17 Aug 2023 22:29:10 +0000 (15:29 -0700)
This reverts commit 759c1dbe6a8ee8198c30506ad873116cbe1ddd65.

core/parser/parser.factor

index 1acc0b240e51e1ed20c7cf447ae437fc139940ef..65d20d3f0eb39df14ba87022082b1a72dc2bf463 100644 (file)
@@ -72,8 +72,7 @@ ERROR: number-expected ;
 ERROR: invalid-word-name string ;
 
 : check-word-name ( string -- string )
-    CHAR: " over index
-    [ t ] [ dup string>number ] if
+    dup "\"" = [ t ] [ dup string>number ] if
     [ invalid-word-name ] when ;
 
 : scan-word-name ( -- string )