Merge branch 'better_headerguards' of http://github.com/fennewald/kakoune

This commit is contained in:
Maxime Coste 2021-04-18 17:04:40 +10:00
commit 732ee04c84

View File

@ -387,7 +387,7 @@ define-command -hidden c-family-insert-include-guards %{
evaluate-commands %sh{ evaluate-commands %sh{
case "${kak_opt_c_include_guard_style}" in case "${kak_opt_c_include_guard_style}" in
ifdef) ifdef)
echo 'execute-keys ggi<c-r>%<ret><esc>ggxs\.<ret>c_<esc><space>A_INCLUDED<esc>ggxyppI#ifndef<space><esc>jI#define<space><esc>jI#endif<space>//<space><esc>O<esc>' echo 'execute-keys ggi<c-r>%<ret><esc>ggI/<esc>xs^.*/<ret>dxs\.<ret>c_<esc><space>A_INCLUDED<esc>ggxyppI#ifndef<space><esc>jI#define<space><esc>jI#endif<space>//<space><esc>O<esc>'
;; ;;
pragma) pragma)
echo 'execute-keys ggi#pragma<space>once<esc>' echo 'execute-keys ggi#pragma<space>once<esc>'