mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Advance over tokens that are only whitespace
This commit is contained in:
@@ -104,6 +104,7 @@ class ScreenLine
|
||||
|
||||
isComment: ->
|
||||
for token in @tokens
|
||||
continue if token.isOnlyWhitespace()
|
||||
continue if token.scopes.length is 1
|
||||
for scope in token.scopes
|
||||
return true if _.contains(scope.split('.'), 'comment')
|
||||
|
||||
Reference in New Issue
Block a user