diff --git a/rc/tools/clang.kak b/rc/tools/clang.kak index 9022cf26..10ce05e6 100644 --- a/rc/tools/clang.kak +++ b/rc/tools/clang.kak @@ -88,12 +88,12 @@ The syntaxic errors detected during parsing are shown when auto-diagnostics are printf %s\\n "evaluate-commands -client ${kak_client} echo 'clang parsing done'" | kak -p ${kak_session} fi - flags=$(cat ${dir}/stderr | sed -rne " + flags=$(cat ${dir}/stderr | sed -Ene " /^:[0-9]+:([0-9]+:)? (fatal )?error/ { s/^:([0-9]+):.*/'\1|{red}█'/; p } /^:[0-9]+:([0-9]+:)? warning/ { s/^:([0-9]+):.*/'\1|{yellow}█'/; p } " | paste -s -d ' ' -) - errors=$(cat ${dir}/stderr | sed -rne " + errors=$(cat ${dir}/stderr | sed -Ene " /^:[0-9]+:([0-9]+:)? ((fatal )?error|warning)/ { s/'/''/g; s/^:([0-9]+):([0-9]+:)? (.*)/'\1|\3'/; p }" | sort -n | paste -s -d ' ' -) diff --git a/rc/tools/ctags.kak b/rc/tools/ctags.kak index b39eeb66..c2d48389 100644 --- a/rc/tools/ctags.kak +++ b/rc/tools/ctags.kak @@ -88,7 +88,7 @@ define-command ctags-funcinfo -docstring "Display ctags information about a sele f=${kak_selection%?} sig='\tsignature:(.*)' csn='\t(class|struct|namespace):(\S+)' - sigs=$(${kak_opt_readtagscmd} -e -Q '(eq? $kind "f")' "${f}" | sed -re "s/^.*${csn}.*${sig}$/\3 [\2::${f}]/ ;t ;s/^.*${sig}$/\1 [${f}]/") + sigs=$(${kak_opt_readtagscmd} -e -Q '(eq? $kind "f")' "${f}" | sed -Ee "s/^.*${csn}.*${sig}$/\3 [\2::${f}]/ ;t ;s/^.*${sig}$/\1 [${f}]/") if [ -n "$sigs" ]; then printf %s\\n "evaluate-commands -client ${kak_client} %{info -anchor $kak_cursor_line.$kak_cursor_column -style above '$sigs'}" fi