# New Ticket Created by  Arne Skjærholt 
# Please include the string:  [perl #64880]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=64880 >


According to S05, the section entitled "Simplified lexical parsing of
patterns", double quotes are allowed as quotes, "with the same
interpolative semantics as the current language in which the regex is
lexically embedded". Trying to run the code C<"foo" ~~ /"foo"/>
currently fails with the following stacktrace:

$ ./perl6 -e '"foo" ~~ /"foo"/'
Statement not terminated properly at line 1, near "~~ /\"foo\"/"

current instr.: 'parrot;PGE;Util;die' pc 129
(runtime/parrot/library/PGE/Util.pir:85)
called from Sub 'parrot;Perl6;Grammar;eat_terminator' pc 75081
(src/gen_grammar.pir:2547)
called from Sub 'parrot;Perl6;Grammar;statementlist' pc 73738
(src/gen_grammar.pir:2028)
called from Sub 'parrot;Perl6;Grammar;statement_block' pc 71171
(src/gen_grammar.pir:1001)
called from Sub 'parrot;Perl6;Grammar;TOP' pc 65910 (src/gen_setting.pir:12905)
called from Sub 'parrot;PCT;HLLCompiler;parse' pc 665
(src/PCT/HLLCompiler.pir:402)
called from Sub 'parrot;PCT;HLLCompiler;compile' pc 428
(src/PCT/HLLCompiler.pir:303)
called from Sub 'parrot;PCT;HLLCompiler;eval' pc 920
(src/PCT/HLLCompiler.pir:521)
called from Sub 'parrot;PCT;HLLCompiler;command_line' pc 1510
(src/PCT/HLLCompiler.pir:800)
called from Sub 'parrot;Perl6;Compiler;main' pc 24053 (perl6.pir:164)

Reply via email to