mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Add token value directly to column
This commit is contained in:
@@ -48,13 +48,12 @@ class Token
|
||||
column = startColumn
|
||||
|
||||
for token in @breakOutSurrogatePairs()
|
||||
nextColumn += token.value.length
|
||||
if token.isAtomic
|
||||
outputTokens.push(token)
|
||||
else
|
||||
outputTokens.push(token.breakOutAtomicTokens(tabLength, breakOutLeadingSoftTabs, column)...)
|
||||
breakOutLeadingSoftTabs = token.isOnlyWhitespace() if breakOutLeadingSoftTabs
|
||||
column = nextColumn
|
||||
column += token.value.length
|
||||
|
||||
outputTokens
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user