Skip to content

Commit 3f65ce8

Browse files
committed
Update README
1 parent b6eb8a5 commit 3f65ce8

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,18 @@ Then you only need to write: `require("./parser.pegjs")`.
4444

4545
You can pass options to PEG.js as [query parameters](http://webpack.github.io/docs/using-loaders.html#query-parameters). The following options are supported:
4646

47-
* `cache`if `true`, makes the parser cache results, avoiding exponential
47+
* `cache`If `true`, makes the parser cache results, avoiding exponential
4848
parsing time in pathological cases but making the parser slower (default:
49-
`false`)
49+
`false`).
5050

51-
* `optimize` - whether to optimize the built parser either for `speed` or
52-
`size` (default: `speed`)
51+
* `optimize` - Whether to optimize the built parser either for `speed` or
52+
`size` (default: `speed`).
5353

5454
* `allowedStartRules` - The rules the built parser will be allowed to start
5555
parsing from (default: the first rule in the grammar).
5656

57-
* `trace` - if `true`, the tracing support in the built parser is enabled
58-
(default: `false`)
57+
* `trace` - If `true`, the tracing support in the built parser is enabled
58+
(default: `false`).
5959

6060
``` js
6161
module.exports = {
@@ -64,7 +64,7 @@ module.exports = {
6464
loaders: [
6565
{
6666
test: /\.pegjs$/,
67-
loader: 'pegjs-loader?cache=true&optimize=size&allowedStartRules[]=RuleA,allowedStartRules[]=RuleB&trace=false'
67+
loader: 'pegjs-loader?cache=true&optimize=size&allowedStartRules[]=RuleA,allowedStartRules[]=RuleB&trace=true'
6868
}
6969
]
7070
}
@@ -80,6 +80,7 @@ Every release, along with the migration instructions, if any, is documented on t
8080

8181
* [Victor Homyakov](https://github.com/victor-homyakov) for the propagation of the `cache` option.
8282
* [VladimirTechMan](https://github.com/VladimirTechMan) for the propagation of the `optimize` option.
83+
* [ragtime](https://github.com/ragtime) for the propagation of the `allowedStartRules` and `trace` options.
8384

8485
## License
8586

0 commit comments

Comments
 (0)