passing the funky comment test

This commit is contained in:
Jeremy Ashkenas
2010-02-12 16:26:28 -05:00
parent 1a6194e9f0
commit 4deabf5e01
3 changed files with 8 additions and 3 deletions

View File

@@ -406,7 +406,8 @@ grammar: {
When: [
o "LEADING_WHEN SimpleArgs Block", -> new IfNode($2, $3, null, {statement: true})
o "LEADING_WHEN SimpleArgs Block TERMINATOR", -> new IfNode($2, $3, null, {statement: true})
o "Comment TERMINATOR When", -> $3.comment: $1
o "Comment TERMINATOR When", ->
$3.comment: $1; $3
]
# The most basic form of "if".