Merge pull request #29 from nineties/escaped_quotes

Add escaped single and double quotes
This commit is contained in:
Koichi NAKAMURA 2021-12-12 16:12:51 +09:00 committed by GitHub
commit 909c185cc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -1177,6 +1177,8 @@ decimal \ set default to decimal
'v' of 11 endof
'f' of 12 endof
'r' of 13 endof
[char] ' of [char] ' endof
[char] " of [char] " endof
'\\' of '\\' endof
drop -1
endcase

View file

@ -614,6 +614,9 @@ T{ char HELLO -> 48 }T
T{ '\n' -> 0xa }T
T{ '\0' -> 0 }T
T{ 'a' -> 61 }T
T{ '"' -> 22 }T
T{ '\"' -> 22 }T
T{ '\'' -> 27 }T
T{ : gc1 [char] X ; -> }T
T{ : gc2 [char] HELLO ; -> }T
T{ gc1 -> 58 }T