mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Sort $0 tab stops last instead of first for TextMate compatibility
This commit is contained in:
@@ -35,8 +35,8 @@ describe "Snippets extension", ->
|
||||
"tab stops":
|
||||
prefix: "t2"
|
||||
body: """
|
||||
go here next:($1) and finally go here:($2)
|
||||
go here first:($0)
|
||||
go here next:($2) and finally go here:($0)
|
||||
go here first:($1)
|
||||
|
||||
"""
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ class Snippet
|
||||
for segment in bodyTree
|
||||
if segment.index?
|
||||
{ index, content } = segment
|
||||
index = Infinity if index == 0
|
||||
start = [row, column]
|
||||
extractTabStops(content)
|
||||
tabStopsByIndex[index] = new Range(start, [row, column])
|
||||
|
||||
Reference in New Issue
Block a user