brownplt / code.pyret.org

Website for serving Pyret to folks.
Other
24 stars 45 forks source link

Weirdness with `provide *`, `examples` and the indenter #113

Closed blerner closed 7 years ago

blerner commented 8 years ago

The following program does not indent properly -- nothing indents:

provide *
examples:
5 is 6
end
fun foo(x):
x * 2
end

If I remove the provide * then everything indents correctly:

# provide *
examples:
  5 is 6
end
fun foo(x):
  x * 2
end

If I rename examples to check, everything indents correctly:

provide *
check:
  5 is 6
end
fun foo(x):
  x * 2
end

And if I reorder the two blocks, then the function indents but the examples doesn't:

# provide *
fun foo(x):
  x * 2
end
examples:
5 is 6
end
blerner commented 7 years ago

This appears fixed on horizon now; @belph confirm that you'd handled this?

peblair commented 7 years ago

@blerner Correct, it should be fixed