]> ocean-lang.org Git - ocean/commitdiff
parsergen: fix incorrect 'newline_permitted' setting.
authorNeilBrown <neil@brown.name>
Fri, 3 Oct 2014 03:28:05 +0000 (13:28 +1000)
committerNeilBrown <neil@brown.name>
Fri, 3 Oct 2014 03:28:05 +0000 (13:28 +1000)
If a state 'starts_line', then a newline is explicitly permitted
(once indents have gone), not explicitly denied!

Signed-off-by: NeilBrown <neil@brown.name>
csrc/parsergen.mdc

index 720f95f3a374e2a90cedf51360756f9b5789e895..aa173e6ed49db9b4745d54b72d1095d19f0e0ee7 100644 (file)
@@ -2695,7 +2695,7 @@ since the last state which could have been at the start of a line.
                                                        in->newline_permitted = 0;
                                                }
                                                if (states[in->state].starts_line)
-                                                       in->newline_permitted = 0;
+                                                       in->newline_permitted = 1;
                                                while (in < tos) {
                                                        in += 1;
                                                        in->since_indent = in[-1].since_indent + 1;