mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-21 16:08:24 +03:00
Advance over tokens that are only whitespace
This commit is contained in:
parent
a2bcea7d06
commit
e0556d85af
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user