mirror of
https://github.com/atom/atom.git
synced 2026-02-13 16:14:59 -05:00
Revert "Merge pull request #6757 from atom/ns-less-memory-for-tokens"
This reverts commit0cd1f110b5, reversing changes made tod75d202d33. Conflicts: package.json
This commit is contained in:
@@ -2457,8 +2457,9 @@ class TextEditor extends Model
|
||||
# Extended: Determine if the given row is entirely a comment
|
||||
isBufferRowCommented: (bufferRow) ->
|
||||
if match = @lineTextForBufferRow(bufferRow).match(/\S/)
|
||||
scopeDescriptor = @tokenForBufferPosition([bufferRow, match.index]).scopes
|
||||
@commentScopeSelector ?= new TextMateScopeSelector('comment.*')
|
||||
@commentScopeSelector.matches(@scopeDescriptorForBufferPosition([bufferRow, match.index]).scopes)
|
||||
@commentScopeSelector.matches(scopeDescriptor)
|
||||
|
||||
logCursorScope: ->
|
||||
scopeDescriptor = @getLastCursor().getScopeDescriptor()
|
||||
|
||||
Reference in New Issue
Block a user