-
-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raku: Fix unterminated heredoc fixes #547
- Fix heredoc - Move testdata to raku directory - Add testdata for unterminated heredoc
- Loading branch information
1 parent
82795e1
commit 4d7154e
Showing
5 changed files
with
53 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
say q:to//; | ||
|
||
say 'something'; | ||
|
||
# Unterminated heredoc | ||
say q:to/Foo/; | ||
|
||
say 'something'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[ | ||
{"type":"NameBuiltin","value":"say"}, | ||
{"type":"Text","value":" "}, | ||
{"type":"Keyword","value":"q"}, | ||
{"type":"LiteralStringAffix","value":":to"}, | ||
{"type":"Punctuation","value":"//"}, | ||
{"type":"LiteralString","value":";"}, | ||
{"type":"Text","value":"\n\n"}, | ||
{"type":"NameBuiltin","value":"say"}, | ||
{"type":"Text","value":" "}, | ||
{"type":"Punctuation","value":"'"}, | ||
{"type":"LiteralStringSingle","value":"something"}, | ||
{"type":"Punctuation","value":"';"}, | ||
{"type":"Text","value":"\n\n"}, | ||
{"type":"CommentSingle","value":"# Unterminated heredoc"}, | ||
{"type":"Text","value":"\n"}, | ||
{"type":"NameBuiltin","value":"say"}, | ||
{"type":"Text","value":" "}, | ||
{"type":"Keyword","value":"q"}, | ||
{"type":"LiteralStringAffix","value":":to"}, | ||
{"type":"Punctuation","value":"/Foo/;"}, | ||
{"type":"LiteralString","value":"\n\nsay 'something';\n"} | ||
] |