Add increase indent pattern for GFM scope

This commit is contained in:
Kevin Sawicki
2013-02-25 08:58:47 -08:00
parent 8b2c088bc9
commit 9b231e8c4e
4 changed files with 26 additions and 2 deletions

View File

@@ -0,0 +1,4 @@
'name': 'Indent'
'scope': 'source.gfm'
'settings':
'increaseIndentPattern': '^\\s*([\\*\\+-])[ \\t]+'

View File

@@ -132,3 +132,10 @@ describe "GitHub Flavored Markdown grammar", ->
{tokens} = grammar.tokenizeLine("> Quotation")
expect(tokens[0]).toEqual value: ">", scopes: ["source.gfm", "support.quote.gfm"]
expect(tokens[1]).toEqual value: " Quotation", scopes: ["source.gfm", "comment.quote.gfm"]
describe "auto indent", ->
it "indents newlines entered after list lines", ->
config.set('editor.autoIndent', true)
editSession = fixturesProject.buildEditSessionForPath('gfm.md')
editSession.insertNewlineBelow()
expect(editSession.buffer.lineForRow(1)).toBe ' '