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

Missing "ambiguous first argument"-warning #20

Closed
judofyr opened this issue May 2, 2013 · 2 comments
Closed

Missing "ambiguous first argument"-warning #20

judofyr opened this issue May 2, 2013 · 2 comments

Comments

@judofyr
Copy link
Contributor

judofyr commented May 2, 2013

See: https://github.com/rtomayko/tilt/blob/master/test/tilt_wikiclothtemplate_test.rb#L22

$ ruby -c -w test/tilt_wikiclothtemplate_test.rb
test/tilt_wikiclothtemplate_test.rb:22: warning: ambiguous first argument; put parentheses or even spaces
test/tilt_wikiclothtemplate_test.rb:27: warning: ambiguous first argument; put parentheses or even spaces
Syntax OK

ruby-parse -w doesn't give any warnings.

@whitequark
Copy link
Owner

I believe I either removed it because it's missing in 2.0 or HEAD, or it was just too much of a PITA to implement.

Warnings generally should be emitted by linters... however, Ruby's warnings are often (such as in this case) a replacement for nonexistent LALR error recovery. Pull requests are accepted (but first check if it's present in HEAD).

@whitequark
Copy link
Owner

Parser itself is not a linter.

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