From c1e6fe4ca1e83ae3ea5ac008afc0f6d86d3cf187 Mon Sep 17 00:00:00 2001 From: Evan Lloyd New-Schmidt Date: Wed, 21 Jun 2023 16:03:14 -0700 Subject: [PATCH] Add standard SQL comments --- rc/tools/comment.kak | 6 ++++++ 1 file changed, 6 insertions(+) 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