Skip to content

Commit

Permalink
Add testcase for MoonBit
Browse files Browse the repository at this point in the history
  • Loading branch information
trdthg committed Dec 10, 2024
1 parent 029045a commit 20edcff
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ Mint
Mlatu
ModuleDef
MonkeyC
MoonBit
MoonScript
MsBuild
Mustache
Expand Down
13 changes: 13 additions & 0 deletions tests/data/moonbit.mbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// 13 lines 8 code 3 comments 2 blanks

/// Doc comments
fn main {
let s = "rabbit"; // not-counted

// Leading-comment
let b = "line comment // "
let c = // non-counted
#| Multi // not-counted
#| Line
#| String\n
}

0 comments on commit 20edcff

Please sign in to comment.