mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
⬆️ autosave
This commit is contained in:
@@ -92,7 +92,7 @@
|
||||
"autocomplete-plus": "2.35.4",
|
||||
"autocomplete-snippets": "1.11.0",
|
||||
"autoflow": "0.29.0",
|
||||
"autosave": "0.24.2",
|
||||
"autosave": "0.24.3",
|
||||
"background-tips": "0.27.0",
|
||||
"bookmarks": "0.44.4",
|
||||
"bracket-matcher": "0.85.5",
|
||||
|
||||
@@ -189,7 +189,7 @@ class LanguageMode
|
||||
# row is a comment.
|
||||
isLineCommentedAtBufferRow: (bufferRow) ->
|
||||
return false unless 0 <= bufferRow <= @editor.getLastBufferRow()
|
||||
@editor.tokenizedBuffer.tokenizedLines[bufferRow]?.isComment()
|
||||
@editor.tokenizedBuffer.tokenizedLines[bufferRow]?.isComment() ? false
|
||||
|
||||
# Find a row range for a 'paragraph' around specified bufferRow. A paragraph
|
||||
# is a block of text bounded by and empty line or a block of text that is not
|
||||
|
||||
@@ -255,6 +255,7 @@ class TokenizedBuffer extends Model
|
||||
new TokenizedLine({openScopes, text, tags, ruleStack, lineEnding, @tokenIterator})
|
||||
|
||||
tokenizedLineForRow: (bufferRow) ->
|
||||
debugger
|
||||
if 0 <= bufferRow <= @buffer.getLastRow()
|
||||
if tokenizedLine = @tokenizedLines[bufferRow]
|
||||
tokenizedLine
|
||||
|
||||
Reference in New Issue
Block a user