Skip to content

Commit

Permalink
Grammar: s/char/character/ to avoid using a reserved name
Browse files Browse the repository at this point in the history
  • Loading branch information
Seth Kinast committed May 7, 2015
1 parent 162006a commit dd6266f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
peg$c99 = { type: "literal", value: "{`", description: "\"{`\"" },
peg$c100 = "`}",
peg$c101 = { type: "literal", value: "`}", description: "\"`}\"" },
peg$c102 = function(char) {return char},
peg$c102 = function(character) {return character},
peg$c103 = function(rawText) { return withPosition(["raw", rawText.join('')]) },
peg$c104 = { type: "other", description: "comment" },
peg$c105 = "{!",
Expand Down
2 changes: 1 addition & 1 deletion src/dust.pegjs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ esc
= '\\"' { return '"' }

raw "raw"
= "{`" rawText:(!"`}" char:. {return char})* "`}"
= "{`" rawText:(!"`}" character:. {return character})* "`}"
{ return withPosition(["raw", rawText.join('')]) }
comment "comment"
= "{!" c:(!"!}" c:. {return c})* "!}"
Expand Down

0 comments on commit dd6266f

Please sign in to comment.