2010-01-05 23:15:32 -05:00
|
|
|
# comment
|
2010-01-26 10:52:05 -05:00
|
|
|
func: ->
|
2010-01-05 23:15:32 -05:00
|
|
|
# comment
|
2009-12-30 22:24:40 -05:00
|
|
|
false
|
|
|
|
false # comment
|
|
|
|
false
|
2010-04-21 22:26:45 -04:00
|
|
|
|
2009-12-30 22:24:40 -05:00
|
|
|
# comment
|
|
|
|
true
|
2010-01-05 23:15:32 -05:00
|
|
|
|
2010-01-10 17:36:06 -05:00
|
|
|
switch 'string'
|
|
|
|
# comment
|
|
|
|
when false then something()
|
|
|
|
# comment
|
|
|
|
when null
|
|
|
|
something_else()
|
|
|
|
|
2010-01-26 10:52:05 -05:00
|
|
|
->
|
2010-01-20 20:36:31 -05:00
|
|
|
code()
|
|
|
|
# comment
|
|
|
|
|
2010-02-16 19:45:25 -05:00
|
|
|
ok func()
|
2010-02-16 10:12:40 -05:00
|
|
|
|
|
|
|
func
|
|
|
|
func
|
|
|
|
# Line3
|
2010-03-02 19:23:21 -05:00
|
|
|
|
|
|
|
obj: {
|
|
|
|
# comment
|
|
|
|
# comment
|
|
|
|
# comment
|
|
|
|
one: 1
|
|
|
|
# comment
|
|
|
|
two: 2
|
|
|
|
# comment
|
|
|
|
}
|
2010-03-10 16:44:50 -05:00
|
|
|
|
|
|
|
result: if true # comment
|
|
|
|
false
|
|
|
|
|
|
|
|
ok not result
|
|
|
|
|
|
|
|
result: if false
|
|
|
|
false
|
|
|
|
else # comment
|
|
|
|
45
|
|
|
|
|
|
|
|
ok result is 45
|
2010-03-20 00:58:25 -04:00
|
|
|
|
|
|
|
|
|
|
|
test:
|
|
|
|
'test ' +
|
|
|
|
'test ' + # comment
|
|
|
|
'test'
|
|
|
|
|
|
|
|
ok test is 'test test test'
|
2010-05-12 20:56:44 -04:00
|
|
|
|
|
|
|
###
|
|
|
|
This is a here-comment.
|
|
|
|
Kind of like a heredoc.
|
|
|
|
###
|
2010-06-02 00:03:07 -04:00
|
|
|
|
|
|
|
func: ->
|
|
|
|
###
|
|
|
|
Another block comment.
|
|
|
|
###
|
2010-06-12 17:41:46 -04:00
|
|
|
code
|
|
|
|
|
|
|
|
|
|
|
|
# Spaced comments in if / elses.
|
|
|
|
result: if false
|
|
|
|
1
|
|
|
|
|
|
|
|
# comment
|
|
|
|
else if false
|
|
|
|
2
|
|
|
|
|
|
|
|
# comment
|
|
|
|
else
|
|
|
|
3
|
|
|
|
|
|
|
|
ok result is 3
|
2010-06-12 18:06:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
result: switch 'z'
|
|
|
|
when 'z' then 7
|
|
|
|
# comment
|
|
|
|
ok result is 7
|