Revision: 2326
http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2326
Author: phcoder
Date: 2009-06-15 21:06:58 +0000 (Mon, 15 Jun 2009)
Log Message:
-----------
2009-06-15 Vladimir Serbinenko <[email protected]>
Fix handling of string like \"hello\" and "a
b"
* script/sh/lexer.c
(grub_script_yylex): fix parsing of quoting, escaping and newline
Modified Paths:
--------------
trunk/grub2/script/sh/lexer.c
Modified: trunk/grub2/script/sh/lexer.c
===================================================================
--- trunk/grub2/script/sh/lexer.c 2009-06-15 21:05:50 UTC (rev 2325)
+++ trunk/grub2/script/sh/lexer.c 2009-06-15 21:06:58 UTC (rev 2326)
@@ -280,7 +280,9 @@
when a special token was found. It will be recognized
next time when this function is called. */
if (newstate == GRUB_PARSER_STATE_TEXT
- && state->state != GRUB_PARSER_STATE_ESC)
+ && state->state != GRUB_PARSER_STATE_ESC
+ && state->state != GRUB_PARSER_STATE_QUOTE
+ && state->state != GRUB_PARSER_STATE_DQUOTE)
{
int breakout = 0;