Skip to content

Commit

Permalink
Merge pull request #319 from Lodestone-Team/core_macro_config_parsing
Browse files Browse the repository at this point in the history
added macro config parsing in core
  • Loading branch information
C0W0 committed Aug 3, 2023
2 parents e16ee2d + 00443a7 commit 8e7d6bb
Show file tree
Hide file tree
Showing 2 changed files with 474 additions and 2 deletions.
9 changes: 9 additions & 0 deletions core/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ impl Error {
}
}

impl Error {
pub fn ts_syntax_error(context: &str) -> Error {
Error {
kind: ErrorKind::Internal,
source: Report::msg(format!("Syntax error parsing ts ({context})")),
}
}
}


impl Display for ErrorKind {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
Expand Down
Loading

0 comments on commit 8e7d6bb

Please sign in to comment.