Skip to content

Commit

Permalink
feat(ft): support block comments in ruby (#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
allcentury authored Jun 9, 2024
1 parent b689100 commit d7ef9b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/Comment/ft.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ local M = {
twig = '{#%s#}',
vim = '"%s',
lean_b = '/-%s-/',
ruby_block = '=begin%s=end',
}

---Lang table that contains commentstring (linewise/blockwise) for multiple filetypes
Expand Down Expand Up @@ -145,7 +146,7 @@ local L = setmetatable({
rescript = { M.cxx_l, M.cxx_b },
robot = { M.hash }, -- Robotframework doesn't have block comments
ron = { M.cxx_l, M.cxx_b },
ruby = { M.hash },
ruby = { M.hash, M.ruby_block },
rust = { M.cxx_l, M.cxx_b },
sbt = { M.cxx_l, M.cxx_b },
scala = { M.cxx_l, M.cxx_b },
Expand Down

0 comments on commit d7ef9b6

Please sign in to comment.