Skip to content

Commit

Permalink
Tweaks to the Supporting Comments section of STON
Browse files Browse the repository at this point in the history
  • Loading branch information
jfabry committed Jun 16, 2015
1 parent 69e3ccb commit 32e036f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions STON/STON.pillar
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -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
Expand Down

0 comments on commit 32e036f

Please sign in to comment.