require("medit")

master
Yevgen Muntyan 2007-10-26 04:47:33 -05:00
parent 7a7b90fc9b
commit 7bde7c7197
1 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,8 @@ name = Switch _Header and Implementation
langs = c, cpp, objc, chdr, gap
type = lua
options = need-file
require("medit")
extensions = {{{[".h"] = 1, [".hh"] = 1, [".hpp"] = 1, [".hxx"] = 1, [".H"] = 1},
{[".c"] = 1, [".cc"] = 1, [".cpp"] = 1, [".cxx"] = 1, [".C"] = 1, [".m"] = 1}},
{{[".gd"] = 1}, {[".gi"] = 1}}}
@ -27,7 +29,7 @@ options = need-file
for e in pairs(new) do
file = doc.dir .. "/" .. doc.base .. e
if lfs.attributes(file) then
Open(file)
medit.open(file)
return
end
end