summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2023-07-03 20:02:47 +1000
committerMaxime Coste <mawww@kakoune.org>2023-07-03 20:02:47 +1000
commit2cd14860e0672bc50b8bbd8e85e1cb1fe98a0591 (patch)
tree4032d3e7f74cf8f301ad76e98308fefab743a64b
parentdca5043812d6ded97ef62920826caa9f2047690b (diff)
parentc1e6fe4ca1e83ae3ea5ac008afc0f6d86d3cf187 (diff)
Merge remote-tracking branch 'newsch/sql-comments'
-rw-r--r--rc/tools/comment.kak6
1 files changed, 6 insertions, 0 deletions
diff --git a/rc/tools/comment.kak b/rc/tools/comment.kak
index 92cf42b6..4de897f6 100644
--- a/rc/tools/comment.kak
+++ b/rc/tools/comment.kak
@@ -142,6 +142,12 @@ hook global BufSetOption filetype=ruby %{
set-option buffer comment_block_end '^=end'
}
+hook global BufSetOption filetype=sql %{
+ set-option buffer comment_line '--'
+ set-option buffer comment_block_begin '/*'
+ set-option buffer comment_block_end '*/'
+}
+
define-command comment-block -docstring '(un)comment selections using block comments' %{
evaluate-commands %sh{
if [ -z "${kak_opt_comment_block_begin}" ] || [ -z "${kak_opt_comment_block_end}" ]; then