mirror of
https://github.com/atom/atom.git
synced 2026-02-06 20:55:33 -05:00
Add increase indent pattern for GFM scope
This commit is contained in:
4
src/packages/gfm.tmbundle/Preferences/indent.cson
Normal file
4
src/packages/gfm.tmbundle/Preferences/indent.cson
Normal file
@@ -0,0 +1,4 @@
|
||||
'name': 'Indent'
|
||||
'scope': 'source.gfm'
|
||||
'settings':
|
||||
'increaseIndentPattern': '^\\s*([\\*\\+-])[ \\t]+'
|
||||
@@ -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 ' '
|
||||
|
||||
Reference in New Issue
Block a user