Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

change snippet output format for completions

git-svn-id: http://svn.textmate.org/trunk/Bundles/OCaml Experimental Completions.tmbundle@6570 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
commit f6c2d4148569bdab891cd7b3007e83a60da42208 1 parent 00aa61b
David Powers authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Commands/Complete vals.tmCommand
4 Commands/Complete vals.tmCommand
View
@@ -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
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.