mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 03:21:20 -05:00
...
This commit is contained in:
@@ -88,7 +88,12 @@ rule
|
||||
|
||||
Block:
|
||||
Expression { result = Expressions.new(val) }
|
||||
| INDENT Expressions OUTDENT { result = val[1] }
|
||||
| INDENT Expressions Outdent { result = val[1] }
|
||||
;
|
||||
|
||||
Outdent:
|
||||
/* nothing */
|
||||
| OUTDENT
|
||||
;
|
||||
|
||||
# All tokens that can terminate an expression.
|
||||
|
||||
@@ -136,6 +136,7 @@ module CoffeeScript
|
||||
@indents.pop while @indents.last && ((@indents.last || 0) > size)
|
||||
@indent = @indents.last || 0
|
||||
end
|
||||
@line += 1
|
||||
@i += (size + 1)
|
||||
token(tag, size)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user