Put EOL invisibles into their own scope

This commit is contained in:
probablycorey
2014-05-19 17:27:59 -07:00
parent 4d642b91ef
commit 9b5593d020
2 changed files with 4 additions and 1 deletions

View File

@@ -146,8 +146,9 @@ LinesComponent = React.createClass
innerHTML += @updateScopeStack(scopeStack, token.scopes)
hasIndentGuide = not mini and showIndentGuide and token.hasLeadingWhitespace or (token.hasTrailingWhitespace and lineIsWhitespaceOnly)
innerHTML += token.getValueAsHtml({invisibles, hasIndentGuide})
innerHTML += @popScope(scopeStack) while scopeStack.length > 0
innerHTML += invisibles.eol if invisibles.eol?
innerHTML += "<span class='invisible-character'>#{invisibles.eol}</span>"
innerHTML
updateScopeStack: (scopeStack, desiredScopes) ->