Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add the column caret line when encountering a SyntaxError #5810
When we see an error:
we see the line the error occured on but we should see:
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.
This actually is a tiny bit different. If the right keyword is noticed to be unexpected MRI somehow knows the range:
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.