diff --git a/ChangeLog b/ChangeLog index eebaf83c8..1c4ebbc4f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2013-10-17 Vladimir Serbinenko + + * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not + currently used so this doesn't really have any effect. + Reported by: Douglas Ray + 2013-10-17 Vladimir Serbinenko * util/grub-mkstandalone.in: Remove needless copying since we already diff --git a/grub-core/script/yylex.l b/grub-core/script/yylex.l index 8fdcfef67..f7f463804 100644 --- a/grub-core/script/yylex.l +++ b/grub-core/script/yylex.l @@ -170,8 +170,8 @@ POS_MULTILINE {WORD}?\\\n /* Reserved words */ "{" { RECORD; return GRUB_PARSER_TOKEN_LBR; } "}" { RECORD; return GRUB_PARSER_TOKEN_RBR; } -"[[" { RECORD; return GRUB_PARSER_TOKEN_RSQBR2; } -"]]" { RECORD; return GRUB_PARSER_TOKEN_LSQBR2; } +"[[" { RECORD; return GRUB_PARSER_TOKEN_LSQBR2; } +"]]" { RECORD; return GRUB_PARSER_TOKEN_RSQBR2; } "case" { RECORD; return GRUB_PARSER_TOKEN_CASE; } "do" { RECORD; return GRUB_PARSER_TOKEN_DO; } "done" { RECORD; return GRUB_PARSER_TOKEN_DONE; }