Rename selector ivar to source

This commit is contained in:
Kevin Sawicki 2013-04-18 17:36:55 -07:00
parent 62c94959e1
commit f84402c4cf

View File

@ -11,8 +11,11 @@ class TextMateScopeSelector
TextMateScopeSelector.parser = PEG.buildParser(fsUtils.read(patternPath))
TextMateScopeSelector.parser
constructor: (@selector) ->
@matcher = TextMateScopeSelector.createParser().parse(@selector)
source: null
matcher: null
constructor: (@source) ->
@matcher = TextMateScopeSelector.createParser().parse(@source)
matches: (scopes) ->
@matcher.matches(scopes)