Skip to content

Commit

Permalink
Merge pull request #660 from sethkinast/char-reserved
Browse files Browse the repository at this point in the history
Grammar: s/char/character/ to avoid using a reserved name

Closes #659
  • Loading branch information
sethkinast committed May 7, 2015
2 parents 162006a + dd6266f commit aa019e0
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 aa019e0

Please sign in to comment.