X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/34a4576552eb459c762a56202077b42c9e51661e..cbc765de67bc4e947a61323fbcf9b0e01f66c606:/scripts/config/zconf.y diff --git a/scripts/config/zconf.y b/scripts/config/zconf.y index 83243f5ef..ce13f0269 100644 --- a/scripts/config/zconf.y +++ b/scripts/config/zconf.y @@ -72,6 +72,7 @@ static struct menu *current_menu, *current_entry; %token T_SELECT %token T_RANGE %token T_ON +%token T_RESET %token T_WORD %token T_WORD_QUOTE %token T_UNEQUAL @@ -118,7 +119,7 @@ stmt_list: ; option_name: - T_DEPENDS | T_PROMPT | T_TYPE | T_SELECT | T_OPTIONAL | T_RANGE | T_DEFAULT + T_DEPENDS | T_PROMPT | T_TYPE | T_SELECT | T_OPTIONAL | T_RANGE | T_DEFAULT | T_RESET ; common_stmt: @@ -274,6 +275,11 @@ choice_option: T_OPTIONAL T_EOL printd(DEBUG_PARSE, "%s:%d:optional\n", zconf_curname(), zconf_lineno()); }; +choice_option: T_RESET T_EOL +{ + current_entry->sym->flags |= SYMBOL_RESET; +}; + choice_option: T_DEFAULT T_WORD if_expr T_EOL { if ($1->stype == S_UNKNOWN) {