diff options
-rw-r--r-- | etc/bash_completion.d/20vyatta-cfg | 2 | ||||
-rw-r--r-- | src/cli_def.l | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg index c8e4908..60676fe 100644 --- a/etc/bash_completion.d/20vyatta-cfg +++ b/etc/bash_completion.d/20vyatta-cfg @@ -355,7 +355,7 @@ vyatta_parse_tmpl_comp_fields () # $2: field name sed -n ' /^'"$2"':/,$ { - s/^'"$2"':// + s/^'"$2"':[ ]*// h :b $ { x; p; q } diff --git a/src/cli_def.l b/src/cli_def.l index 8f32c51..c90b3c3 100644 --- a/src/cli_def.l +++ b/src/cli_def.l @@ -325,11 +325,11 @@ RE_ACT_FIELD (help|syntax|commit|delete|update|activate|create|begin|end|comp_he return return_str(str_delim); } -{RE_ACT_FIELD}:expression: { +{RE_ACT_FIELD}:expression:[ \t]* { return return_act_field(yy_cli_def_text); } -{RE_ACT_FIELD}: { +{RE_ACT_FIELD}:[ \t]* { BEGIN(action); return return_act_field(yy_cli_def_text); } |