mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Tokenize empty lines using grammars
The literate CoffeeScript grammar uses empty lines to pop out of the paragraph pattern.
This commit is contained in:
@@ -130,10 +130,6 @@ class TextMateGrammar
|
||||
ruleStack = originalRuleStack
|
||||
break
|
||||
|
||||
if line.length == 0
|
||||
tokens = [new Token(value: "", scopes: scopes)]
|
||||
return { tokens, ruleStack }
|
||||
|
||||
break if position == line.length + 1 # include trailing newline position
|
||||
|
||||
if match = _.last(ruleStack).getNextTokens(ruleStack, line, position, firstLine)
|
||||
|
||||
Reference in New Issue
Block a user