Skip to content

Commit

Permalink
change snippet output format for completions
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.textmate.org/trunk/Bundles/OCaml Experimental Completions.tmbundle@6570 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
David Powers committed Feb 12, 2007
1 parent 00aa61b commit f6c2d41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Commands/Complete vals.tmCommand
Expand Up @@ -74,7 +74,7 @@ def convert_to_snippet(str, stripregex)
end
last = c
end
i = 1
i = 2
args = args.map do |a|
a.strip!
i += 1
Expand All @@ -89,7 +89,7 @@ def convert_to_snippet(str, stripregex)
"\$\{#{i}:#{e_sn(a)}\}"
end
end
snippet = "#{funname} #{args.join(' ')}".sub(stripregex, '')
snippet = "#{funname} ${1:#{args.join(' ')}}".sub(stripregex, '')
e_sn($line[0...$linepos]) + snippet + e_sn($line[$linepos..-1])
end
Expand Down

0 comments on commit f6c2d41

Please sign in to comment.