]> git.lizzy.rs Git - micro.git/blobdiff - runtime/plugins/comment/comment.lua
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce...
[micro.git] / runtime / plugins / comment / comment.lua
index b77066b82d1f3db1f2f2a52402cd8c034db12fb8..ce49dcaabb7becbadda52f0e5727dfa38f6319f6 100644 (file)
@@ -35,6 +35,7 @@ ft["markdown"] = "<!-- %s -->"
 ft["nginx"] = "# %s"
 ft["nim"] = "# %s"
 ft["objc"] = "// %s"
+ft["ocaml"] = "(* %s *)"
 ft["pascal"] = "{ %s }"
 ft["perl"] = "# %s"
 ft["php"] = "// %s"
@@ -134,6 +135,7 @@ function toggleCommentSelection(bp, startLine, endLine, commentRegex)
     for line = startLine, endLine do
         if not isCommented(bp, line, commentRegex) then
             allComments = false
+            break
         end
     end