14e86eb7d9
This PR detects misspelled keywords using two heuristics: 1. Lowercasing the unexpected identifier. 2. Using edit distance to find a keyword similar to the unexpected identifier. However, it does not detect each and every misspelled keyword to minimize false positives and ambiguities. More details about the implementation can be found in the comments.
6 lines
70 B
Rust
6 lines
70 B
Rust
fn main() {
|
|
whilee a < b {
|
|
//~^ ERROR expected one of
|
|
}
|
|
}
|