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

Regular expressions #132

Closed
3 tasks done
kddnewton opened this issue Dec 23, 2022 · 0 comments · Fixed by #198
Closed
3 tasks done

Regular expressions #132

kddnewton opened this issue Dec 23, 2022 · 0 comments · Fixed by #198

Comments

@kddnewton
Copy link
Collaborator

kddnewton commented Dec 23, 2022

We need to finish parsing regular expressions.

  • At the moment we handle regex but only if there's no interpolation. We need to also handle interpolation.

  • We also need to handle regular expressions with named captures creating local variables. We have a parser here that can handle that, but we haven't hooked it up yet. That looks like:

/aaa (?<foo>bbb) ccc/ =~ "..."
foo
  • We also need to handle %r regular expressions. At the moment we're only handling regular expressions that start with /.

For documentation, check https://github.com/ruby/ruby/blob/master/doc/syntax/literals.rdoc#label-Regexp+Literals and https://github.com/ruby/ruby/blob/master/doc/syntax/literals.rdoc#r-regexp-literals-.

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.

1 participant