All specs pass w/ TextMateGrammar for tokenization (auto-indent disabled)

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-08-03 12:00:05 -06:00
parent 08a55dfcac
commit 1a243adfcf
14 changed files with 68 additions and 34 deletions

View File

@@ -29,7 +29,7 @@ class EditSession
anchorRanges: null
cursors: null
selections: null
autoIndent: true
autoIndent: false # TODO: re-enabled auto-indent after fixing the rest of tokenization
softTabs: true
softWrap: false
@@ -139,10 +139,7 @@ class EditSession
indent: ->
currentRow = @getCursorBufferPosition().row
if @getSelection().isEmpty()
whitespaceMatch = @lineForBufferRow(currentRow).match /^\s*$/
if @autoIndent and whitespaceMatch
@autoIndentRow(currentRow)
else if @softTabs
if @softTabs
@insertText(@tabText)
else
@insertText('\t')