mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-22 08:28:41 +03:00
getLineTokens must clone the ruleStack
This commit is contained in:
parent
ae4db9d238
commit
3a66aab59d
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user