forked from pegjs/pegjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to extract comments from the grammar
All comments stored in the `comments` property of the `grammar` node. Comments extracted only if the `extractComments` options set to `true` when you generate parser. This property is object with mapping start offset of comment to comment object, that looks like: ```js { text: 'text in the comment, just after // or /* and before */', multiline: true|false,// true for /**/ comments, false for // comments location: location() } ```
- Loading branch information
Showing
5 changed files
with
342 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.