Skip to content

VictorTaelin/rust_highlight_error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Highlight Error

Rust util that highlights an error.

Example

The code below:

fn main() {
  let code = "functon is_zero (x) {
    if (x == 0) [
      return true;
    ] else {
      return false;
    }
  }";
  println!("{}", highlight_error::highlight_error(38, 64, &code));
}

Will output:

example

Releases

No releases published

Packages

No packages published

Languages