Add two missing |var|s (fix global namespace pollution)
This commit is contained in:
parent
1a3291fa36
commit
98cbd57ead
|
@ -2247,8 +2247,8 @@ PEG.parser = (function(){
|
||||||
}
|
}
|
||||||
var result0 = result1 !== null
|
var result0 = result1 !== null
|
||||||
? (function(inverted, parts) {
|
? (function(inverted, parts) {
|
||||||
partsConverted = map(parts, function(part) { return part.data; });
|
var partsConverted = map(parts, function(part) { return part.data; });
|
||||||
rawText = "["
|
var rawText = "["
|
||||||
+ inverted
|
+ inverted
|
||||||
+ map(parts, function(part) { return part.rawText; }).join("")
|
+ map(parts, function(part) { return part.rawText; }).join("")
|
||||||
+ "]";
|
+ "]";
|
||||||
|
|
|
@ -232,8 +232,8 @@ simpleSingleQuotedCharacter
|
||||||
|
|
||||||
class "character class"
|
class "character class"
|
||||||
= "[" inverted:"^"? parts:(classCharacterRange / classCharacter)* "]" __ {
|
= "[" inverted:"^"? parts:(classCharacterRange / classCharacter)* "]" __ {
|
||||||
partsConverted = map(parts, function(part) { return part.data; });
|
var partsConverted = map(parts, function(part) { return part.data; });
|
||||||
rawText = "["
|
var rawText = "["
|
||||||
+ inverted
|
+ inverted
|
||||||
+ map(parts, function(part) { return part.rawText; }).join("")
|
+ map(parts, function(part) { return part.rawText; }).join("")
|
||||||
+ "]";
|
+ "]";
|
||||||
|
|
Loading…
Reference in a new issue