Parse Trait (#71)

This commit is contained in:
Jeong, YunWon 2023-05-28 21:03:27 +09:00 committed by GitHub
parent 5493c9f4e3
commit 4de0cb1827
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 278 additions and 97 deletions

View file

@ -212,7 +212,7 @@ pub fn lex_starts_at(
source: &str,
mode: Mode,
start_offset: TextSize,
) -> impl Iterator<Item = LexResult> + '_ {
) -> SoftKeywordTransformer<Lexer<std::str::Chars<'_>>> {
SoftKeywordTransformer::new(Lexer::new(source.chars(), start_offset), mode)
}