Add standard SQL comments
This commit is contained in:
parent
e06e409dc1
commit
c1e6fe4ca1
|
@ -142,6 +142,12 @@ hook global BufSetOption filetype=ruby %{
|
||||||
set-option buffer comment_block_end '^=end'
|
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' %{
|
define-command comment-block -docstring '(un)comment selections using block comments' %{
|
||||||
evaluate-commands %sh{
|
evaluate-commands %sh{
|
||||||
if [ -z "${kak_opt_comment_block_begin}" ] || [ -z "${kak_opt_comment_block_end}" ]; then
|
if [ -z "${kak_opt_comment_block_begin}" ] || [ -z "${kak_opt_comment_block_end}" ]; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user