Merge pull request #155 from fpirsch/patch-3

Fix automatic semi-colon insertion
redux
David Majda 12 years ago
commit e8a68e91e0

@ -1164,20 +1164,20 @@ VariableDeclarationListNoIn
} }
VariableDeclaration VariableDeclaration
= name:Identifier __ value:Initialiser? { = name:Identifier value:(__ Initialiser)? {
return { return {
type: "VariableDeclaration", type: "VariableDeclaration",
name: name, name: name,
value: value !== "" ? value : null value: value !== "" ? value[1] : null
}; };
} }
VariableDeclarationNoIn VariableDeclarationNoIn
= name:Identifier __ value:InitialiserNoIn? { = name:Identifier value:(__ InitialiserNoIn)? {
return { return {
type: "VariableDeclaration", type: "VariableDeclaration",
name: name, name: name,
value: value !== "" ? value : null value: value !== "" ? value[1] : null
}; };
} }

Loading…
Cancel
Save