mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
committed by
Geoffrey Booth
parent
b192e215a5
commit
76945ab458
@@ -414,12 +414,9 @@ exports.Lexer = class Lexer
|
||||
lastIndent = @indents[@indents.length - 1]
|
||||
if not lastIndent
|
||||
moveOut = 0
|
||||
else if lastIndent is @outdebt
|
||||
moveOut -= @outdebt
|
||||
@outdebt = 0
|
||||
else if lastIndent < @outdebt
|
||||
@outdebt -= lastIndent
|
||||
moveOut -= lastIndent
|
||||
else if @outdebt and moveOut <= @outdebt
|
||||
@outdebt -= moveOut
|
||||
moveOut = 0
|
||||
else
|
||||
dent = @indents.pop() + @outdebt
|
||||
if outdentLength and @chunk[outdentLength] in INDENTABLE_CLOSERS
|
||||
|
||||
Reference in New Issue
Block a user