]> git.ozlabs.org Git - petitboot/blobdiff - discover/grub2/parser.y
discover/grub2: Implement statement blocks
[petitboot] / discover / grub2 / parser.y
index a8c02e284b6d7b4507003839e1d5eb483814617f..d57c732a8382152c690fbabad381b5b266c0f509 100644 (file)
@@ -73,7 +73,9 @@ statement: TOKEN_EOL {
        | words TOKEN_EOL {
                   $$ = create_statement_simple(parser, $1);
        }
-       | '{' statements '}' { $$ = NULL; }
+       | '{' statements '}' {
+               $$ = create_statement_block(parser, $2);
+       }
        | "if" TOKEN_DELIM statement
                "then" TOKEN_EOL
                statements