Merge remote-tracking branch 'lenormf/docstring-newline-format' into master

This commit is contained in:
Maxime Coste 2020-09-06 10:50:51 +10:00
commit cf7955cdfb
2 changed files with 8 additions and 7 deletions

View File

@ -155,9 +155,10 @@ define-command -hidden clang-show-error-info %{
fi fi
} } } }
define-command clang-enable-diagnostics -docstring %{Activate automatic error reporting and diagnostics define-command clang-enable-diagnostics -docstring %{
Information about the analysis are showned after the buffer has been parsed with the clang-parse function} \ Activate automatic error reporting and diagnostics
%{ Information about the analysis will be shown after the buffer has been parsed with the clang-parse function
} %{
add-highlighter window/clang_flags flag-lines default clang_flags add-highlighter window/clang_flags flag-lines default clang_flags
hook window -group clang-diagnostics NormalIdle .* %{ clang-show-error-info } hook window -group clang-diagnostics NormalIdle .* %{ clang-show-error-info }
hook window -group clang-diagnostics WinSetOption ^clang_errors=.* %{ info; clang-show-error-info } hook window -group clang-diagnostics WinSetOption ^clang_errors=.* %{ info; clang-show-error-info }

View File

@ -4,10 +4,10 @@ declare-option -docstring "name of the client in which utilities display informa
str toolsclient str toolsclient
declare-option -hidden int grep_current_line 0 declare-option -hidden int grep_current_line 0
define-command -params .. -file-completion \ define-command -params .. -file-completion -docstring %{
-docstring %{grep [<arguments>]: grep utility wrapper grep [<arguments>]: grep utility wrapper
All the optional arguments are forwarded to the grep utility} \ All optional arguments are forwarded to the grep utility
grep %{ evaluate-commands %sh{ } grep %{ evaluate-commands %sh{
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
set -- "${kak_selection}" set -- "${kak_selection}"
fi fi