mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-31 23:57:57 +00:00
Parse Trait (#71)
This commit is contained in:
parent
5493c9f4e3
commit
4de0cb1827
7 changed files with 278 additions and 97 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue