rebol/r3 — pull request #70 by hostilefork (2013-01-22 19:09:08+00:00)
Title: Allow NEW-LINE and NEW-LINE? to accept PAREN! series

On accident, I discovered that PAREN! preserves and molds newline behavior just like BLOCK! does...but unlike BLOCK! it did not offer the option to get or set those newline markers.

I suspected it would probably "just work" if the natives weren't defined to only accept BLOCK!. So I just added PAREN! to the accepted types, and the suspicion appears to be correct.

I've not thought through whether newline markers make sense for PATH! etc. I hope they don't. But they certainly seem sensible for PAREN!, for instance in `parse` where they may (like blocks) contain many lines of code.

The test suite should probably contain something that sets newline markers and makes sure it gets the same answer back, stuff like:

>> foo: quote (a b c)
>> assert [false = new-line? next foo]
>> new-line next foo true
>> assert [true = new-line? next foo]