Perform whitespace check after scopes check

This commit is contained in:
Kevin Sawicki
2013-02-14 11:48:03 -08:00
parent e0556d85af
commit 1fed183a8c

View File

@@ -104,8 +104,8 @@ class ScreenLine
isComment: ->
for token in @tokens
continue if token.isOnlyWhitespace()
continue if token.scopes.length is 1
continue if token.isOnlyWhitespace()
for scope in token.scopes
return true if _.contains(scope.split('.'), 'comment')
break