commit-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[2326] 2009-06-15 Vladimir Serbinenko <address@hidden>


From: Vladimir Serbinenko
Subject: [2326] 2009-06-15 Vladimir Serbinenko <address@hidden>
Date: Mon, 15 Jun 2009 21:06:59 +0000

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  <address@hidden>

        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;
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]