mirror of
https://github.com/atom/atom.git
synced 2026-01-25 14:59:03 -05:00
Perform whitespace check after scopes check
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user