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

Rakudo allows postfix<:> in regexp(?) but STD doesnt #2108

Closed
p6rt opened this issue Aug 30, 2010 · 6 comments
Closed

Rakudo allows postfix<:> in regexp(?) but STD doesnt #2108

p6rt opened this issue Aug 30, 2010 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Aug 30, 2010

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

Searchable as RT77524$

@p6rt
Copy link
Author

p6rt commented Aug 30, 2010

From @bbkr

[18​:54] <bbkr> rakudo​: / x​:/
[18​:54] <p6eval> rakudo 6ccdcd​: ( no output )

[18​:54] <bbkr> std​: / x​:/
[18​:54] <p6eval> std 32116​: OUTPUT«�[31m===�[0mSORRY!�[31m===�[0mâ�¤Unrecognized
regex metacharacter : (must be quoted to match literally) at /tmp/p4Hf1aN4K8
line 1​:â�¤------> �[32m/ x​:�[33mâ���[31m/�[0mâ�¤Check failedâ�¤FAILED 00​:01 116mâ�¤Â»

@p6rt
Copy link
Author

p6rt commented Jul 2, 2012

From @bbkr

On 2012.06​:

$ perl6 -e 'say "x​:" ~~ / x​:/'
q[x]

$ perl6 -e 'say "x​:" ~~ / x\​:/'
q[x​:]

Colon is used for http://perlcabal.org/syn/S05.html#Backtracking_control .

@p6rt
Copy link
Author

p6rt commented Jul 2, 2012

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Feb 15, 2015

From @Mouq

This seems more like a STD bug than anything to do with Rakudo​:

00​:26 <Mouq> std​: / x​:/
00​:26 <camelia> std f9b7f55​: OUTPUT«===SORRY!===â�¤Unrecognized regex metacharacter : (must be quoted to
  match literally) at /tmp/v_cWVBkJqC line 1​:â�¤------> / x​:â��/â�¤Check failedâ�¤FAILED 00​:01
  136mâ�¤Â»
00​:26 <Mouq> std​: / x​: /
00​:26 <camelia> std f9b7f55​: OUTPUT«ok 00​:00 135mâ�¤Â»

On Mon Jul 02 09​:23​:09 2012, bbkr wrote​:

On 2012.06​:

$ perl6 -e 'say "x​:" ~~ / x​:/'
q[x]

$ perl6 -e 'say "x​:" ~~ / x\​:/'
q[x​:]

Colon is used for http://perlcabal.org/syn/S05.html#Backtracking_control .

@p6rt
Copy link
Author

p6rt commented Jul 20, 2015

From @jnthn

On Sat Feb 14 21​:28​:09 2015, Mouq wrote​:

This seems more like a STD bug than anything to do with Rakudo​:

00​:26 <Mouq> std​: / x​:/
00​:26 <camelia> std f9b7f55​: OUTPUT«===SORRY!===â�¤Unrecognized regex
metacharacter : (must be quoted to
match literally) at /tmp/v_cWVBkJqC line 1​:â�¤------> /
x​:â��/â�¤Check failedâ�¤FAILED 00​:01
136m�»
00​:26 <Mouq> std​: / x​: /
00​:26 <camelia> std f9b7f55​: OUTPUT«ok 00​:00 135mâ�¤Â»

On Mon Jul 02 09​:23​:09 2012, bbkr wrote​:

On 2012.06​:

$ perl6 -e 'say "x​:" ~~ / x​:/'
q[x]

$ perl6 -e 'say "x​:" ~~ / x\​:/'
q[x​:]

Colon is used for
http://perlcabal.org/syn/S05.html#Backtracking_control .

We discussed this a good bit on channel, and the conclusion was that it is indeed STD in the wrong​:

http://irclog.perlgeek.de/perl6/2015-07-20#i_10926978

However, we did end up tightening something up in Rakudo's regex grammar; that was ticketed as RT #​125648.

Added tests capturing the decision on this ticket to S05-metasyntax/regex.t.

@p6rt p6rt closed this as completed Jul 20, 2015
@p6rt
Copy link
Author

p6rt commented Jul 20, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant