mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
getLineTokens must clone the ruleStack
This commit is contained in:
@@ -26,6 +26,7 @@ class TextMateGrammar
|
||||
@repository[name] = new Rule(this, data)
|
||||
|
||||
getLineTokens: (line, stack=[@initialRule]) ->
|
||||
stack = new Array(stack...) # clone stack
|
||||
tokens = []
|
||||
position = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user