mirror of https://github.com/XAMPPRocky/tokei
* fix #1107 Adds support for Mojo language * add Mojo support with test (#1107) * add Mojo support with test (#1107) * add Mojo support with test (#1107)
This commit is contained in:
parent
029045a5a3
commit
f71c75dd71
|
|
@ -1107,6 +1107,12 @@
|
||||||
"extensions": ["def"],
|
"extensions": ["def"],
|
||||||
"line_comment": [";"]
|
"line_comment": [";"]
|
||||||
},
|
},
|
||||||
|
"Mojo": {
|
||||||
|
"line_comment": ["#"],
|
||||||
|
"doc_quotes": [["\\\"\\\"\\\"", "\\\"\\\"\\\""], ["'''", "'''"]],
|
||||||
|
"quotes": [["\\\"", "\\\""], ["'", "'"]],
|
||||||
|
"extensions": ["mojo", "🔥"]
|
||||||
|
},
|
||||||
"MonkeyC": {
|
"MonkeyC": {
|
||||||
"name": "Monkey C",
|
"name": "Monkey C",
|
||||||
"extensions": ["mc"],
|
"extensions": ["mc"],
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
# 21 lines 15 code 3 comments 3 blanks
|
||||||
|
|
||||||
|
|
||||||
|
'''
|
||||||
|
This is a docstring.
|
||||||
|
# It has multiple lines.
|
||||||
|
This is the end of the docstring.
|
||||||
|
'''
|
||||||
|
def main():
|
||||||
|
# Hello Mojo!
|
||||||
|
string = "Hello Mojo!"
|
||||||
|
# The following line prints the string "Hello Mojo!"
|
||||||
|
print(string)
|
||||||
|
|
||||||
|
"""
|
||||||
|
This piece of code prints
|
||||||
|
the numbers "9", "6", and "3".
|
||||||
|
'Here is a quote.'
|
||||||
|
"""
|
||||||
|
for x in range(9, 0, -3):
|
||||||
|
print(x)
|
||||||
Loading…
Reference in New Issue