Last of scopeDescriptor -> scopes from tokens

This commit is contained in:
Ben Ogle
2014-10-21 11:49:49 -07:00
parent 37159bb478
commit 31490ca31e

View File

@@ -308,8 +308,8 @@ LinesComponent = React.createClass
iterator = null
charIndex = 0
for {value, scopeDescriptor}, tokenIndex in tokenizedLine.tokens
charWidths = editor.getScopedCharWidths(scopeDescriptor)
for {value, scopes}, tokenIndex in tokenizedLine.tokens
charWidths = editor.getScopedCharWidths(scopes)
for char in value
continue if char is '\0'
@@ -331,7 +331,7 @@ LinesComponent = React.createClass
rangeForMeasurement.setStart(textNode, i)
rangeForMeasurement.setEnd(textNode, i + 1)
charWidth = rangeForMeasurement.getBoundingClientRect().width
editor.setScopedCharWidth(scopeDescriptor, char, charWidth)
editor.setScopedCharWidth(scopes, char, charWidth)
charIndex++