Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while compiling block when "a" ~~ /<[a]-[\n]>/ #2978

Closed
p6rt opened this issue Nov 18, 2012 · 7 comments
Closed

Error while compiling block when "a" ~~ /<[a]-[\n]>/ #2978

p6rt opened this issue Nov 18, 2012 · 7 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Nov 18, 2012

Migrated from rt.perl.org#115802 (status was 'resolved')

Searchable as RT115802$

@p6rt
Copy link
Author

p6rt commented Nov 18, 2012

From @FROGGS

<FROGGS> r​: say so "a" ~~ /<[a..c]-[\n]>/
<p6eval> rakudo 112307​: OUTPUT«===SORRY!===␤Error while compiling block
: Error while compiling op call​: Error while compiling block : Error
while compiling block : Unrecognized subtype 'zerowidth' in QAST​::Regex
cclass␤»

<FROGGS> r​: say so "a" ~~ /\n/
<p6eval> rakudo 112307​: OUTPUT«False␤»

<FROGGS> r​: say so "a" ~~ /<[\n]>/
<p6eval> rakudo 112307​: OUTPUT«False␤»

<FROGGS> r​: say so "a" ~~ /<-[\n]>/
<p6eval> rakudo 112307​: OUTPUT«True␤»

<FROGGS> r​: say so "a" ~~ /<[\n]-[a]>/
<p6eval> rakudo 112307​: OUTPUT«False␤»

--
Tobias Leich

@p6rt
Copy link
Author

p6rt commented Nov 18, 2012

@FROGGS - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Nov 18, 2012

@FROGGS - Status changed from 'open' to 'new'

@p6rt
Copy link
Author

p6rt commented Feb 24, 2013

From @FROGGS

One problem fixed, another TODO added​:
Raku/roast@9527129

$ ./perl6 -e 'say("abc" ~~ /<[\w]-[\n]>/)'
「a」

$ ./perl6 -e 'say("abc" ~~ /<[\w]-[\N]>/)'
「a」

@p6rt
Copy link
Author

p6rt commented Feb 24, 2013

@FROGGS - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Mar 2, 2013

From @FROGGS

fixed​:

<FROGGS> nr​: say "abc123def" ~~ /<[\w]-[a\D]>+/
<p6eval> rakudo 7a41b9, niecza v24-24-gbdc3343​: OUTPUT«「123」␤␤»

tests​:
Raku/roast@5fd6f982ba

@p6rt
Copy link
Author

p6rt commented Mar 2, 2013

@FROGGS - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Mar 2, 2013
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant