Skip to content

Commit

Permalink
Merge pull request #1 from jmccrystal/patch-2
Browse files Browse the repository at this point in the history
add Mojo support with test (XAMPPRocky#1107)
  • Loading branch information
jmccrystal authored Oct 31, 2024
2 parents 16a97f3 + c78753b commit 0185476
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/data/mojo.mojo
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# 19 lines 5 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)

0 comments on commit 0185476

Please sign in to comment.