From 3d8fca9d1cd7c32bffc1eddfddca240cecad5f58 Mon Sep 17 00:00:00 2001 From: muhas Date: Fri, 29 Sep 2017 00:11:49 +0300 Subject: [PATCH] Add support less & css and ascending order languges --- comment.lua | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/comment.lua b/comment.lua index 4508eae..2f1d3b9 100644 --- a/comment.lua +++ b/comment.lua @@ -3,19 +3,21 @@ VERSION = "1.0.4" ft = {} ft["c"] = "// %s" +ft["css"] = "/* %s */" +ft["d"] = "// %s" ft["go"] = "// %s" -ft["python"] = "# %s" -ft["python3"] = "# %s" ft["html"] = "" ft["java"] = "// %s" +ft["javascript"] = "// %s" +ft["less"] = "// %s" +ft["lua"] = "-- %s" ft["perl"] = "# %s" +ft["python3"] = "# %s" +ft["python"] = "# %s" +ft["ruby"] = "# %s" ft["rust"] = "// %s" ft["shell"] = "# %s" -ft["lua"] = "-- %s" -ft["javascript"] = "// %s" -ft["ruby"] = "# %s" -ft["d"] = "// %s" -ft["swift"] = "// %s" +ft["swift"] = "// %s function onViewOpen(v) if v.Buf.Settings["commenttype"] == nil then