X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/2cd10271b8414588da9e37793eb25ad182683cb8..9e2306be1f9e6ceb8ba37bf8784268e9cb010e30:/scripts/config/zconf.y diff --git a/scripts/config/zconf.y b/scripts/config/zconf.y index 4b8ba4506..9689a3ed8 100644 --- a/scripts/config/zconf.y +++ b/scripts/config/zconf.y @@ -69,6 +69,7 @@ static struct menu *current_menu, *current_entry; %token T_PROMPT %token T_TYPE %token T_DEFAULT +%token T_DESELECT %token T_SELECT %token T_RANGE %token T_ON @@ -119,7 +120,7 @@ stmt_list: ; option_name: - T_DEPENDS | T_PROMPT | T_TYPE | T_SELECT | T_OPTIONAL | T_RANGE | T_DEFAULT | T_RESET + T_DEPENDS | T_PROMPT | T_TYPE | T_DESELECT | T_SELECT | T_OPTIONAL | T_RANGE | T_DEFAULT | T_RESET ; common_stmt: @@ -204,6 +205,12 @@ config_option: T_DEFAULT expr if_expr T_EOL $1->stype); }; +config_option: T_DESELECT T_WORD if_expr T_EOL +{ + menu_add_symbol(P_DESELECT, sym_lookup($2, 0), $3); + printd(DEBUG_PARSE, "%s:%d:deselect\n", zconf_curname(), zconf_lineno()); +}; + config_option: T_SELECT T_WORD if_expr T_EOL { menu_add_symbol(P_SELECT, sym_lookup($2, 0), $3);