mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Create empty token on empty lines
This commit is contained in:
@@ -34,9 +34,14 @@ class TextMateGrammar
|
||||
position = 0
|
||||
|
||||
loop
|
||||
scopes = _.pluck(stack, "scopeName")
|
||||
|
||||
if line.length == 0
|
||||
tokens = [{value: "", scopes: scopes}]
|
||||
return { tokens, scopes }
|
||||
|
||||
break if position == line.length
|
||||
|
||||
scopes = _.pluck(stack, "scopeName")
|
||||
{ nextTokens, tokensStartPosition, tokensEndPosition} = _.last(stack).getNextTokens(stack, line, position)
|
||||
|
||||
if nextTokens
|
||||
|
||||
Reference in New Issue
Block a user