Skip to content

Commit

Permalink
fix token compatibility and update enum formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Apr 9, 2024
1 parent 1cca0c9 commit 8257775
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/comment.jule
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct CommentMap {
}

impl CommentMap {
static fn build(mut &tokens: []Token): CommentMap {
static fn build(mut &tokens: []&Token): CommentMap {
let mut cm = CommentMap{
map: make([]&Comment, 0, 1 << 8),
}
Expand Down
4 changes: 2 additions & 2 deletions src/format.jule
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use utf8 for std::unicode::utf8

struct Field {
f: &ast::FieldDecl
token: Token
token: &Token
expr: str
}

Expand Down Expand Up @@ -307,7 +307,7 @@ impl Formatter {
self.write(self.indent)
self.write(item.ident)
if !item.auto_expr() {
self.write(" = ")
self.write(": ")
self.format_expr(item.expr)
}
self.write(",")
Expand Down

0 comments on commit 8257775

Please sign in to comment.