Skip to content

Commit

Permalink
fix: explicitly list all used tokens in the grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed Jan 16, 2017
1 parent 4ba474c commit b6eb05a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"homepage": "https://github.com/arlac77/config-expander#readme",
"dependencies": {
"expression-expander": "^5.3.7",
"pratt-parser": "^5.0.1"
"pratt-parser": "^6.0.0"
},
"devDependencies": {
"chai": "^3.5.0",
Expand Down
5 changes: 4 additions & 1 deletion src/grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'use strict';

import {
Parser, IdentifierToken
Parser, IdentifierToken, WhiteSpaceToken, NumberToken, StringToken
}
from 'pratt-parser';

Expand Down Expand Up @@ -101,6 +101,9 @@ export class ConfigParser extends Parser {

const grammar = {
tokens: [
WhiteSpaceToken,
NumberToken,
StringToken,
Object.create(IdentifierToken, {
parseString: {
value: function (tokenizer, pp, properties) {
Expand Down

0 comments on commit b6eb05a

Please sign in to comment.