Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5198,6 +5198,8 @@ MoonBit:
filenames:
- moon.mod
- moon.pkg
- pkg.generated.mbti
- pkg.mbti
tm_scope: source.moonbit
ace_mode: text
language_id: 181453007
Expand Down
31 changes: 31 additions & 0 deletions samples/MoonBit/filenames/pkg.generated.mbti
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// Generated using `moon info`, DON'T EDIT IT
package "moonbitlang/parser"

import {
"moonbitlang/core/list",
"moonbitlang/lexer/basic",
"moonbitlang/moon_config",
"moonbitlang/parser/syntax",
}

// Values
pub fn parse_mbtx_string(String, name? : String, parser? : Parser) -> (Mbtx, Array[@basic.Report])

pub fn parse_string(String, name? : String, parser? : Parser) -> (@list.List[@syntax.Impl], Array[@basic.Report])

// Errors

// Types and methods
pub struct Mbtx {
header : @moon_config.ParseResult?
body : @list.List[@syntax.Impl]
}

pub(all) enum Parser {
MoonYacc
Handrolled
}

// Type aliases

// Traits
9 changes: 9 additions & 0 deletions samples/MoonBit/filenames/pkg.mbti
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package "Milky2018/selene/platform_window"

import {
"Milky2018/selene/platform_runtime",
}

fn initialize(@platform_runtime.WindowConfig, @platform_runtime.RunnerCallbacks) -> () -> Unit

fn request_close() -> Unit