Skip to content

Commit

Permalink
Parser demo should use comment attachment.
Browse files Browse the repository at this point in the history
Since attaching comments to the syntax node is implemented, this is what
should be instead and not just comments collection.

https://code.google.com/p/esprima/issues/detail?id=197
  • Loading branch information
ariya committed Mar 24, 2014
1 parent 93c70c1 commit 03b3f04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo/parse.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ <h3 class="subheader"><strong>Parser</strong> produces the (beautiful) syntax tr
<p>Syntax node location info (start, end):
<label><input type="checkbox" id="range">Index-based range</label>
<label><input type="checkbox" id="loc">Line and column-based</label></p>
<label><input type="checkbox" id="comment"> Include comments</label>
<label><input type="checkbox" id="comment"> Attach comments</label>
<label><input type="checkbox" id="tolerant"> Tolerate errors (<a href="https://code.google.com/p/esprima/issues/detail?id=130">experimental</a>)</label></p>
</div>

Expand Down
2 changes: 1 addition & 1 deletion demo/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function parse(delay) {

code = window.editor.getText();
options = {
comment: id('comment').checked,
attachComment: id('comment').checked,
range: id('range').checked,
loc: id('loc').checked,
tolerant: id('tolerant').checked
Expand Down

0 comments on commit 03b3f04

Please sign in to comment.