ra_syntax: refactored the lexer design as per @matklad and @kiljacken PR review
This commit is contained in:
@@ -11,7 +11,7 @@ use crate::{fuzz, SourceFile};
|
||||
fn lexer_tests() {
|
||||
dir_tests(&test_data_dir(), &["lexer"], |text, _| {
|
||||
// FIXME: add tests for errors (their format is up to discussion)
|
||||
let tokens = crate::tokenize(text).tokens;
|
||||
let (tokens, _errors) = crate::tokenize(text);
|
||||
dump_tokens(&tokens, text)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user