Note: Ruby 2.6 seems to change this caret into underlining the column in question. The basic plumbing for this is to supply the column the error occurs on so that change for 9.3 should be easy to change to.
The text was updated successfully, but these errors were encountered:
This actually is a tiny bit different. If the right keyword is noticed to be unexpected MRI somehow knows the range:
system ~/work/jruby master 1043% mri25 -e 'fo; do'
-e:1: syntax error, unexpected keyword_do_block, expecting end-of-input
system ~/work/jruby master 1044% jruby -e 'fo; do'
SyntaxError: -e:1: syntax error, unexpected keyword_do_block
Making this match exactly can be done later since 2.6 will underline the keyword (vs using a caret) but this is more than adequate to solving the basic issue of pointing out where the syntax error is occuring.