mirror of
https://github.com/XAMPPRocky/tokei
synced 2024-10-02 14:03:31 +00:00
Add LiveScript to languages.json (#607)
LiveScript is a language which compiles to JavaScript. (http://livescript.net/)
This commit is contained in:
parent
900e069e03
commit
724c8e8995
|
@ -687,6 +687,12 @@
|
|||
"nested": true,
|
||||
"extensions": ["lisp", "lsp"]
|
||||
},
|
||||
"LiveScript": {
|
||||
"line_comment": ["#"],
|
||||
"multi_line_comments": [["/*", "*/"]],
|
||||
"quotes": [["\\\"", "\\\""], ["'", "'"]],
|
||||
"extensions": ["ls"]
|
||||
},
|
||||
"LLVM": {
|
||||
"line_comment": [";"],
|
||||
"quotes": [["\\\"", "\\\""], ["'", "'"]],
|
||||
|
|
28
tests/data/livescript.ls
Normal file
28
tests/data/livescript.ls
Normal file
|
@ -0,0 +1,28 @@
|
|||
# 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
|
Loading…
Reference in a new issue