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

Support module paths in module declaration #15

Closed
now opened this issue Jul 26, 2011 · 2 comments
Closed

Support module paths in module declaration #15

now opened this issue Jul 26, 2011 · 2 comments

Comments

@now
Copy link
Contributor

now commented Jul 26, 2011

In Ruby, module A::B::C sets the scope to the module C inside A::B. Currently, treetop doesn’t support this syntax. It would be easy to add by changing alphanumeric_char* to (alphanumeric_char / '::')* in the module_declaration rule.

@cjheath
Copy link
Collaborator

cjheath commented Jul 27, 2011

A patch and test for this is now on github. Please test it, and if it works ok for you, I can re-release the Treetop gem

@cjheath cjheath closed this as completed Jul 27, 2011
@now
Copy link
Contributor Author

now commented Jul 27, 2011

On Wed, Jul 27, 2011 at 02:49, cjheath
reply@reply.github.com
wrote:

A patch and test for this is now on github. Please test it, and if it works ok for you, I can re-release the Treetop gem

Seems to work fine.

Thank you!

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

2 participants