X-Git-Url: https://ocean-lang.org/code/?p=ocean;a=blobdiff_plain;f=csrc%2Fscanner.mdc;h=fcfadca97c7803ede6422d5bc6e06493691f58d3;hp=777688482566796691d97f6df6cd3e8e5cf9e863;hb=a98df22daa1e3e2ef80ecea149cbe286ff7fdbf1;hpb=ba777227310b9a690dae52fce75b89588f6d7847 diff --git a/csrc/scanner.mdc b/csrc/scanner.mdc index 7776884..fcfadca 100644 --- a/csrc/scanner.mdc +++ b/csrc/scanner.mdc @@ -882,11 +882,6 @@ tokens will continue to return the same end-of-file token. ###### white space if (ch == WEOF) { - if (state->col) { - state->col = 0; - state->check_indent = 1; - continue; - } tk.num = TK_eof; return tk; } @@ -1005,12 +1000,12 @@ a flag that tells us whether or not we need to strip. &mbstate); if (n == -2 || n == 0) { /* Not enough bytes - not really possible */ - next = '\n'; - state->offset = state->node->code.len; + next = '\n'; // NOTEST + state->offset = state->node->code.len; // NOTEST } else if (n == -1) { /* error */ - state->offset += 1; - next = 0x7f; // an illegal character + state->offset += 1; // NOTEST + next = 0x7f; // an illegal character // NOTEST } else state->offset += n;