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

:ignoremark works on quoted literals, but not on backslash escapes #5956

Closed
p6rt opened this issue Dec 31, 2016 · 4 comments
Closed

:ignoremark works on quoted literals, but not on backslash escapes #5956

p6rt opened this issue Dec 31, 2016 · 4 comments
Labels
regex Regular expressions, pattern matching, user-defined grammars, tokens and rules

Comments

@p6rt
Copy link

p6rt commented Dec 31, 2016

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

Searchable as RT130465$

@p6rt
Copy link
Author

p6rt commented Dec 31, 2016

From @moritz

m<oritz> m​: say so qq["\c[COMBINING TILDE]"] ~~ / ^ :ignoremark '"'/
<camelia> rakudo-moar f0c0b0​: OUTPUT«True␤»
<moritz> m​: say so qq["\c[COMBINING TILDE]"] ~~ / ^ :ignoremark \"/
<camelia> rakudo-moar f0c0b0​: OUTPUT«False␤»

The version where I use \" should also say True.

--
Moritz Lenz
https://deploybook.com/ -- https://perlgeek.de/ -- https://perl6.org/

@p6rt
Copy link
Author

p6rt commented Jan 2, 2017

From @jnthn

On Sat, 31 Dec 2016 05​:09​:51 -0800, moritz.lenz@​gmail.com wrote​:

m<oritz> m​: say so qq["\c[COMBINING TILDE]"] ~~ / ^ :ignoremark '"'/
<camelia> rakudo-moar f0c0b0​: OUTPUT«True␤»
<moritz> m​: say so qq["\c[COMBINING TILDE]"] ~~ / ^ :ignoremark \"/
<camelia> rakudo-moar f0c0b0​: OUTPUT«False␤»

The version where I use \" should also say True.

Fixed, and test added in S05-modifier/ignoremark.t.

/jnthn

@p6rt
Copy link
Author

p6rt commented Jan 2, 2017

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

@p6rt
Copy link
Author

p6rt commented Jan 2, 2017

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

@p6rt p6rt closed this as completed Jan 2, 2017
@p6rt p6rt added the regex Regular expressions, pattern matching, user-defined grammars, tokens and rules label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regex Regular expressions, pattern matching, user-defined grammars, tokens and rules
Projects
None yet
Development

No branches or pull requests

1 participant