mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
Fixing #773. Statements cannot be wrapped in parens (as in JS).
This commit is contained in:
parent
87560d943c
commit
d9cd75c426
4 changed files with 4 additions and 4 deletions
|
@ -362,7 +362,7 @@
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
Parenthetical: [
|
Parenthetical: [
|
||||||
o("( Line )", function() {
|
o("( Expression )", function() {
|
||||||
return new Parens($2);
|
return new Parens($2);
|
||||||
}), o("( )", function() {
|
}), o("( )", function() {
|
||||||
return new Parens(new Literal(''));
|
return new Parens(new Literal(''));
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -404,7 +404,7 @@ grammar =
|
||||||
# where only values are accepted, wrapping it in parentheses will always do
|
# where only values are accepted, wrapping it in parentheses will always do
|
||||||
# the trick.
|
# the trick.
|
||||||
Parenthetical: [
|
Parenthetical: [
|
||||||
o "( Line )", -> new Parens $2
|
o "( Expression )", -> new Parens $2
|
||||||
o "( )", -> new Parens new Literal ''
|
o "( )", -> new Parens new Literal ''
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Basic exception throwing.
|
# Basic exception throwing.
|
||||||
block = -> (throw 'up')
|
block = -> throw 'up'
|
||||||
throws block, 'up'
|
throws block, 'up'
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue