Skip to content

Commit

Permalink
julefmt: improve comment support
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Mar 28, 2024
1 parent c0b502d commit 514ae9f
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 46 deletions.
2 changes: 2 additions & 0 deletions src/comment.jule
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use std::jule::lex::{

struct Comment {
row: int
col: int
txt: str
}

Expand All @@ -30,6 +31,7 @@ impl CommentMap {
}
cm.map = append(cm.map, &Comment{
row: token.row,
col: token.column,
txt: token.kind,
})
_ = copy(tokens[i:], tokens[i + 1:])
Expand Down
Loading

0 comments on commit 514ae9f

Please sign in to comment.