mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
allowing empty parens.
This commit is contained in:
parent
536e24b024
commit
ec54b50c67
3 changed files with 73 additions and 68 deletions
|
@ -354,6 +354,8 @@
|
|||
Parenthetical: [
|
||||
o("( Line )", function() {
|
||||
return new ParentheticalNode($2);
|
||||
}), o("( )", function() {
|
||||
return new ParentheticalNode(new LiteralNode(''));
|
||||
})
|
||||
],
|
||||
WhileSource: [
|
||||
|
|
138
lib/parser.js
138
lib/parser.js
File diff suppressed because one or more lines are too long
|
@ -399,6 +399,7 @@ grammar =
|
|||
# the trick.
|
||||
Parenthetical: [
|
||||
o "( Line )", -> new ParentheticalNode $2
|
||||
o "( )", -> new ParentheticalNode new LiteralNode ''
|
||||
]
|
||||
|
||||
# The condition portion of a while loop.
|
||||
|
|
Loading…
Add table
Reference in a new issue