File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ def scan_tokens encoder, options
102
102
next
103
103
elsif match = scan ( /-/ )
104
104
deleted_lines_count += 1
105
- if options [ :inline_diff ] && deleted_lines_count == 1 && ( changed_lines_count = 1 + check ( /(?> .*(?:\n \- .*)*) / ) . count ( "\n " ) ) && match? ( /(?>.*(?:\n \- .*){#{ changed_lines_count - 1 } }(?:\n \+ .*){#{ changed_lines_count } })$(?!\n \+ )/ )
105
+ if options [ :inline_diff ] && deleted_lines_count == 1 && ( changed_lines_count = 1 + check ( /.*(?:\n \- .*)*/ ) . count ( "\n " ) ) && match? ( /(?>.*(?:\n \- .*){#{ changed_lines_count - 1 } }(?:\n \+ .*){#{ changed_lines_count } })$(?!\n \+ )/ )
106
106
deleted_lines = Array . new ( changed_lines_count ) { |i | skip ( /\n \- / ) if i > 0 ; scan ( /.*/ ) }
107
107
inserted_lines = Array . new ( changed_lines_count ) { |i | skip ( /\n \+ / ) ; scan ( /.*/ ) }
108
108
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def reset_instance
41
41
end
42
42
43
43
def scan_tokens encoder , options
44
-
44
+ # FIXME: keep_state
45
45
until eos?
46
46
47
47
if ( match = scan_until ( /(?=#{ START_OF_ERB } )/o ) || scan_rest ) and not match . empty?
You can’t perform that action at this time.
0 commit comments