mirror of
https://github.com/atom/atom.git
synced 2026-02-18 02:21:43 -05:00
Associate TokenizedLines with an ::indentLevel
This can be used to render the appropriate number of indent guide spans for empty lines.
This commit is contained in:
committed by
Nathan Sobo
parent
d0a917ed14
commit
6997adece9
@@ -4,7 +4,7 @@ idCounter = 1
|
||||
|
||||
module.exports =
|
||||
class TokenizedLine
|
||||
constructor: ({tokens, @lineEnding, @ruleStack, @startBufferColumn, @fold, tabLength}) ->
|
||||
constructor: ({tokens, @lineEnding, @ruleStack, @startBufferColumn, @fold, tabLength, @indentLevel}) ->
|
||||
@tokens = @breakOutAtomicTokens(tokens, tabLength)
|
||||
@startBufferColumn ?= 0
|
||||
@text = _.pluck(@tokens, 'value').join('')
|
||||
|
||||
Reference in New Issue
Block a user