diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-09-24 13:59:43 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-09-24 13:59:43 +0800 |
commit | cbe74bd95f301d60d6f2a9ed4f1d687a455e7d40 (patch) | |
tree | 750cda46ad26ad9730f2bad84e6e0f259589ba29 | |
parent | 9cf9430d5a1db0addd4788798fd7275d2c514f3c (diff) | |
download | petitboot-cbe74bd95f301d60d6f2a9ed4f1d687a455e7d40.zip petitboot-cbe74bd95f301d60d6f2a9ed4f1d687a455e7d40.tar.gz |
discover/grub2/lexer: Require 1+ spaces for a TOKEN_DELIM
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rw-r--r-- | discover/grub2/lexer.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/grub2/lexer.l b/discover/grub2/lexer.l index aca474a..0558ed9 100644 --- a/discover/grub2/lexer.l +++ b/discover/grub2/lexer.l @@ -29,7 +29,7 @@ VARNAME ([[:alpha:]][_[:alnum:]]*|[0-9]|[\?@\*#]) /* discard leading & trailing whitespace, but keep inter-word delimeters */ ^[ \t]+ ; [ \t]+$ ; -[ \t]* return TOKEN_DELIM; +[ \t]+ return TOKEN_DELIM; /* reserved words */ "[[" return TOKEN_LDSQBRACKET; |