aboutsummaryrefslogtreecommitdiffstats
path: root/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/parser.c b/parser.c
index bd540e0..ac739a0 100644
--- a/parser.c
+++ b/parser.c
@@ -186,18 +186,17 @@ int idoline(interpreter *interp, const char *line)
loop:
ooffset = 0;
offset = 0;
+ skipblank(line, eol, &offset);
- if (line[0] == '#') {
+ if (line[offset] == '#') {
goto norun;
} else if (interp->indent > 0) {
- skipblank(line, eol, &offset);
if (!strcmp(line + offset, "end"))
interp->indent--;
goto norun;
}
// step 1 - convert to tokens
- skipblank(line, eol, &offset);
while (!eol(line[offset])) {
if (offset > 0 && line[offset] == '>') {
offset++;