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

Syntax error with file that has OK syntax with MRI 2.2 #2744

madis opened this Issue Mar 23, 2015 · 1 comment


None yet
3 participants
Copy link

madis commented Mar 23, 2015

The exception SyntaxError in /Users/madis/.rvm/gems/jruby- syntax error, unexpected tLABEL_END occured when a dependency I am using was tried to get loaded by jruby- When checking with MRI 2.2.0 syntax was considered ok:

curl | ruby -c

Line reported to be erroneous:

@headius headius added this to the milestone Apr 3, 2015


This comment has been minimized.

Copy link

headius commented Apr 3, 2015

A reduced case:

cond ? x + ')': ''

The parser seems to think the ')': is a hash label rather than being separate tokens ')' and ':' (for the ternary).

Parser bug for @enebo.

@enebo enebo modified the milestones:, Apr 28, 2015

@enebo enebo closed this in 5f93f4c Jun 4, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.