discover/grub2/lexer: Require 1+ spaces for a TOKEN_DELIM
authorJeremy Kerr <jk@ozlabs.org>
Tue, 24 Sep 2013 05:59:43 +0000 (13:59 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 24 Sep 2013 05:59:43 +0000 (13:59 +0800)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/grub2/lexer.l

index aca474af3e96e286deed352230d557e3d246d808..0558ed9d791c38c12b852e1eba95389aa65b0915 100644 (file)
@@ -29,7 +29,7 @@ VARNAME ([[:alpha:]][_[:alnum:]]*|[0-9]|[\?@\*#])
  /* discard leading & trailing whitespace, but keep inter-word delimeters */
 ^[ \t]+        ;
 [ \t]+$        ;
  /* discard leading & trailing whitespace, but keep inter-word delimeters */
 ^[ \t]+        ;
 [ \t]+$        ;
-[ \t]* return TOKEN_DELIM;
+[ \t]+ return TOKEN_DELIM;
 
  /* reserved words */
 "[["         return TOKEN_LDSQBRACKET;
 
  /* reserved words */
 "[["         return TOKEN_LDSQBRACKET;