File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2871,6 +2871,7 @@ def on_parse_error(error, *)
2871
2871
alias on_assign_error on_parse_error
2872
2872
alias on_class_name_error on_parse_error
2873
2873
alias on_param_error on_parse_error
2874
+ alias compile_error on_parse_error
2874
2875
2875
2876
# :call-seq:
2876
2877
# on_period: (String value) -> Period
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def test_parses_ripper_methods
33
33
34
34
def test_errors_on_missing_token_with_location
35
35
error = assert_raises ( Parser ::ParseError ) { SyntaxTree . parse ( "f+\" foo" ) }
36
- assert_equal ( 2 , error . column )
36
+ assert_equal ( 3 , error . column )
37
37
end
38
38
39
39
def test_errors_on_missing_end_with_location
@@ -45,7 +45,7 @@ def test_errors_on_missing_regexp_ending
45
45
error =
46
46
assert_raises ( Parser ::ParseError ) { SyntaxTree . parse ( "a =~ /foo" ) }
47
47
48
- assert_equal ( 5 , error . column )
48
+ assert_equal ( 6 , error . column )
49
49
end
50
50
51
51
def test_errors_on_missing_token_without_location
You can’t perform that action at this time.
0 commit comments