Skip to content
Snippets Groups Projects
Commit b4d9934f authored by Lionel Blatter's avatar Lionel Blatter
Browse files

[autocomplete] Simplified regular expression and remove space

parent 77cec487
No related branches found
No related tags found
No related merge requests found
...@@ -93,8 +93,8 @@ _frama-c () ...@@ -93,8 +93,8 @@ _frama-c ()
elif [[ "${COMP_WORDS[COMP_CWORD -1]}" == "-wp-prover" ]] elif [[ "${COMP_WORDS[COMP_CWORD -1]}" == "-wp-prover" ]]
then then
local prefix=; [[ $cur == *,* ]] && prefix="${cur%,*}," local prefix=; [[ $cur == *,* ]] && prefix="${cur%,*},"
advance_options="$(frama-c -wp-detect | grep -E -o " \[.*" | grep -E -o "[^]\[-\|]*")" advance_options="$(frama-c -wp-detect | grep -E -o " \[.*" | grep -E -o "[^][|]*")"
advance_options+=" none script tip native:alt-ergo native:coq native:coqide" advance_options+="none script tip native:alt-ergo native:coq native:coqide"
local ambigous="$(bind -v | grep show-all-if-ambiguous)" local ambigous="$(bind -v | grep show-all-if-ambiguous)"
ambigous="${ambigous##* }" ambigous="${ambigous##* }"
if [[ "$ambigous" == "on" ]] if [[ "$ambigous" == "on" ]]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment