mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 03:21:20 -05:00
trying out new arrows for function literals -> is a function, => is a bound function
This commit is contained in:
@@ -39,7 +39,7 @@ prechigh
|
||||
left EXTENDS
|
||||
left '||=' '&&=' '?='
|
||||
right ASSIGN RETURN
|
||||
right '=>' '==>' UNLESS IF ELSE WHILE
|
||||
right '->' '=>' UNLESS IF ELSE WHILE
|
||||
preclow
|
||||
|
||||
rule
|
||||
@@ -207,8 +207,8 @@ rule
|
||||
|
||||
# The symbols to signify functions, and bound functions.
|
||||
FuncGlyph:
|
||||
'=>' { result = :func }
|
||||
| '==>' { result = :boundfunc }
|
||||
'->' { result = :func }
|
||||
| '=>' { result = :boundfunc }
|
||||
;
|
||||
|
||||
# The parameters to a function definition.
|
||||
|
||||
Reference in New Issue
Block a user