Moved syntax from doc.highlighter to doc

This commit is contained in:
rxi
2020-05-08 20:29:22 +01:00
parent a754c60127
commit 31820b36ef
3 changed files with 22 additions and 21 deletions
+1 -1
View File
@@ -221,7 +221,7 @@ local commands = {
end,
["doc:toggle-line-comments"] = function()
local comment = doc().highlighter.syntax.comment
local comment = doc().syntax.comment
if not comment then return end
local comment_text = comment .. " "
local line1, _, line2 = doc():get_selection(true)