History

kconfig: require T_EOL to reduce visible statement

All line-oriented statements should be reduced when seeing a T_EOL token. I guess missing T_EOL for the "visible" statement is just a mistake. This commit decreases one shift/reduce conflict.

Masahiro Yamada committed 7 years ago

Commit 413cd191 parent fbac5971 file · +2 −2Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/kconfig/zconf.y+2−2
@@ -31,7 +31,7 @@ struct symbol *symbol_hash[SYMBOL_HASHSIZE]; · 30 unmodified lines
3131 static struct menu *current_menu, *current_entry;
3232
3333 %}
34−%expect 30
34+%expect 29
3535
3636 %union
3737 {
@@ -461,7 +461,7 @@ visibility_list: · 423 unmodified lines
461461 | visibility_list T_EOL
462462 ;
463463
464−visible: T_VISIBLE if_expr
464+visible: T_VISIBLE if_expr T_EOL
465465 {
466466 menu_add_visibility($2);
467467 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t