]> ocean-lang.org Git - ocean/blobdiff - csrc/scanner.mdc
scanner: initialise token state properly.
[ocean] / csrc / scanner.mdc
index 57f9e21b0c4c916af6b9cda625bcdc444ef0ae0a..6dda84832c8931a0f9e7f33d5118680380d95fdf 100644 (file)
@@ -1107,7 +1107,9 @@ As well as getting tokens, we need to be able to create the
                memset(state, 0, sizeof(*state));
                state->node = code;
                state->line = code->line_no;
+               state->col = code->indent;
                state->conf = conf;
+               do_strip(state);
                return state;
        }
        void token_close(struct token_state *state)