From ca86e76a1dacd5ba43488dcf0b0b81119d35b495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 2 Nov 2016 23:00:49 +0100 Subject: sam: ignore white space between commands of a group --- sam.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sam.c') diff --git a/sam.c b/sam.c index 237396f..72b51ac 100644 --- a/sam.c +++ b/sam.c @@ -560,8 +560,7 @@ static Command *command_parse(Vis *vis, const char **s, int level, enum SamError if (strcmp(cmd->argv[0], "{") == 0) { Command *prev = NULL, *next; do { - skip_spaces(s); - if (**s == '\n') + while (**s == ' ' || **s == '\t' || **s == '\n') (*s)++; next = command_parse(vis, s, level+1, err); if (prev) -- cgit v1.2.3