From 32e036fce8fae28c20fe0934bbb79065bc8a0a6e Mon Sep 17 00:00:00 2001 From: Johan Fabry Date: Tue, 16 Jun 2015 20:20:04 -0300 Subject: [PATCH] Tweaks to the Supporting Comments section of STON --- STON/STON.pillar | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/STON/STON.pillar b/STON/STON.pillar index 4264027..ec852fd 100644 --- a/STON/STON.pillar +++ b/STON/STON.pillar @@ -546,7 +546,7 @@ or ==put:onStream:== and ==put:onStreamPretty:==, like this: !!! Supporting Comments Like JSON, STON does not allow comments of any kind in its format. However, STON offers the possibility to handle comments using a special stream named ==STONCStyleCommentsSkipStream==. -The following snippet illustrates what you can do: +The following snippets illustrate two ways to use this stream: [[[ STON fromStream: (STONCStyleCommentsSkipStream on: 'Point[/* this is X*/ 1, /* this is Y*/ 2] // Nice huh ?' readStream). @@ -566,8 +566,7 @@ Point[ This helper class is useable in other contexts too, like for NeoJSON. The advantage is that it does not change the STON (or JSON) syntax itself, -it just adds some functionality for those who want it. - +it just adds some functionality on top. !!! Configuring the Writer