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

[PROPOSAL] Allow %r{} syntax for multiline regexps #1020

Closed
ixti opened this issue Apr 21, 2014 · 3 comments · Fixed by #1721
Closed

[PROPOSAL] Allow %r{} syntax for multiline regexps #1020

ixti opened this issue Apr 21, 2014 · 3 comments · Fixed by #1721

Comments

@ixti
Copy link

ixti commented Apr 21, 2014

IMHO %r{} looks better for multi=line regexps:

RE = %r{
  ^
    (...)
    (...)
  $
}x

# vs

RE = /
  ^
    (...)
    (...)
  $
/x
@bbatsov
Copy link
Collaborator

bbatsov commented Apr 21, 2014

Seems pretty subjective to me, but I've noticed others share this particular preference.

@ixti
Copy link
Author

ixti commented Apr 21, 2014

@bbatsov coding styles are subjective things in general ;))

@bbatsov
Copy link
Collaborator

bbatsov commented Apr 21, 2014

True that. I guess we can add an option to use a different delimiter for multi-line regexps.

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

Successfully merging a pull request may close this issue.

2 participants