From 9688cae2ebf43a76cb062634d76af7f5f43aaf48 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Thu, 17 Oct 2013 01:28:24 +0200 Subject: [PATCH] * 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 --- ChangeLog | 6 ++++++ grub-core/script/yylex.l | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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; }