File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,8 @@ def scan_tokens tokens, options
192
192
193
193
194
194
def handle_error ( match , options )
195
- if options [ :ignore_errors ]
195
+ o = { :ignore_errors => true } . merge ( options )
196
+ if o [ :ignore_errors ]
196
197
[ match , :plain ]
197
198
else
198
199
[ ">>>>>#{ match } <<<<<" , :error ]
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ def test_0010_ErbBash
63
63
[ "other_command" , :ident ] ,
64
64
[ "\n " , :end_line ]
65
65
] ,
66
- CodeRay . scan ( File . read ( eb_file ) , :erb_bash ) )
66
+ CodeRay . scan ( File . read ( eb_file ) , :erb_bash , :ignore_errors => false ) )
67
67
end
68
68
69
69
def test_0011_ErbBash_Ignoring_Errors
@@ -115,7 +115,7 @@ def test_0011_ErbBash_Ignoring_Errors
115
115
[ "other_command" , :ident ] ,
116
116
[ "\n " , :end_line ]
117
117
] ,
118
- CodeRay . scan ( File . read ( eb_file ) , :erb_bash , :ignore_errors => true ) )
118
+ CodeRay . scan ( File . read ( eb_file ) , :erb_bash ) )
119
119
end
120
120
121
121
end
You can’t perform that action at this time.
0 commit comments