mirror of
https://github.com/XAMPPRocky/tokei.git
synced 2026-05-28 00:20:57 +02:00
724c8e8995
LiveScript is a language which compiles to JavaScript. (http://livescript.net/)
29 lines
372 B
Plaintext
29 lines
372 B
Plaintext
# 28 lines, 10 code, 12 comments, 6 blanks
|
|
|
|
/*
|
|
* /* Nested comment
|
|
* # single line comment
|
|
* */
|
|
|
|
/*
|
|
|
|
add = (a, b) ->
|
|
return a + b
|
|
*/
|
|
|
|
hello = ->
|
|
console.log 'hello, world!'
|
|
|
|
"hello!" |> capitalize |> console.log
|
|
|
|
# Easy listing of implicit objects
|
|
table1 =
|
|
* id: 1
|
|
name: 'george'
|
|
* id: 2
|
|
name: 'mike' # comment
|
|
* id: 3
|
|
name: 'donald'
|
|
|
|
# Comment
|