Handle only buffer coordinates in TokenIterator

This commit is contained in:
Antonio Scandurra
2016-04-07 12:28:41 +02:00
parent b0c485c4ea
commit a532000af4
5 changed files with 56 additions and 49 deletions

View File

@@ -14,7 +14,7 @@ class Token
isEqual: (other) ->
# TODO: scopes is deprecated. This is here for the sake of lang package tests
@value is other.value and _.isEqual(@scopes, other.scopes) and !!@isAtomic is !!other.isAtomic
@value is other.value and _.isEqual(@scopes, other.scopes)
isBracket: ->
/^meta\.brace\b/.test(_.last(@scopes))