From bc9e32a3cf3df4ec16207c1d655e17c2dba62687 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 6 Aug 2013 17:11:32 -0700 Subject: [PATCH] :lipstick: --- .../text-mate-scope-selector-matchers.coffee | 21 +++++++------------ 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/src/app/text-mate-scope-selector-matchers.coffee b/src/app/text-mate-scope-selector-matchers.coffee index f2812ec20..da475bdc5 100644 --- a/src/app/text-mate-scope-selector-matchers.coffee +++ b/src/app/text-mate-scope-selector-matchers.coffee @@ -56,29 +56,23 @@ class PathMatcher class OrMatcher constructor: (@left, @right) -> - matches: (scopes) -> - @left.matches(scopes) or @right.matches(scopes) + matches: (scopes) -> @left.matches(scopes) or @right.matches(scopes) - toCssSelector: -> - "#{@left.toCssSelector()} #{@right.toCssSelector()}" + toCssSelector: -> "#{@left.toCssSelector()} #{@right.toCssSelector()}" class AndMatcher constructor: (@left, @right) -> - matches: (scopes) -> - @left.matches(scopes) and @right.matches(scopes) + matches: (scopes) -> @left.matches(scopes) and @right.matches(scopes) - toCssSelector: -> - "#{@left.toCssSelector()} #{@right.toCssSelector()}" + toCssSelector: -> "#{@left.toCssSelector()} #{@right.toCssSelector()}" class NegateMatcher constructor: (@matcher) -> - matches: (scopes) -> - not @matcher.matches(scopes) + matches: (scopes) -> not @matcher.matches(scopes) - toCssSelector: -> - ":not(#{@matcher.toCssSelector()})" + toCssSelector: -> ":not(#{@matcher.toCssSelector()})" class CompositeMatcher constructor: (left, operator, right) -> @@ -87,8 +81,7 @@ class CompositeMatcher when '&' then @matcher = new AndMatcher(left, right) when '-' then @matcher = new AndMatcher(left, new NegateMatcher(right)) - matches: (scopes) -> - @matcher.matches(scopes) + matches: (scopes) -> @matcher.matches(scopes) toCssSelector: -> @matcher.toCssSelector()