Skip to content
Merged
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ target
_build
.mooncakes/
.DS_Store

_build/
target/
7 changes: 6 additions & 1 deletion moon.pkg.json
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
{}
{
"import": [
"moonbitlang/core/hashmap",
"moonbitlang/core/strconv"
]
}
2 changes: 1 addition & 1 deletion parser.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ fn IniParseState::handle_value_char(
state.left -= 1
if state.left == 0 {
// it must be 4 digits hex
let code = (try? @strconv.parse_int(state.hex.to_string(), base=16)).unwrap()
let code = try! @strconv.parse_int(state.hex.to_string(), base=16)
self.ctx.buffer.write_char(Int::unsafe_to_char(code))
self.escape_state = EscapeState::None
self.last_char_is_backslash = false
Expand Down