Skip to content

Commit 2cf92a9

Browse files
authored
Merge pull request RustPython#1623 from RustPython/coolreader18/fix-linecontinuation-typo
Rename LineContinationHandler -> LineContinuationHandler
2 parents f3b073a + fd07047 commit 2cf92a9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

parser/src/lexer.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ pub type LexResult = Result<Spanned, LexicalError>;
119119

120120
pub fn make_tokenizer<'a>(source: &'a str) -> impl Iterator<Item = LexResult> + 'a {
121121
let nlh = NewlineHandler::new(source.chars());
122-
let lch = LineContinationHandler::new(nlh);
122+
let lch = LineContinuationHandler::new(nlh);
123123
Lexer::new(lch)
124124
}
125125

@@ -181,18 +181,18 @@ where
181181
}
182182

183183
// Glues \ and \n into a single line:
184-
pub struct LineContinationHandler<T: Iterator<Item = char>> {
184+
pub struct LineContinuationHandler<T: Iterator<Item = char>> {
185185
source: T,
186186
chr0: Option<char>,
187187
chr1: Option<char>,
188188
}
189189

190-
impl<T> LineContinationHandler<T>
190+
impl<T> LineContinuationHandler<T>
191191
where
192192
T: Iterator<Item = char>,
193193
{
194194
pub fn new(source: T) -> Self {
195-
let mut nlh = LineContinationHandler {
195+
let mut nlh = LineContinuationHandler {
196196
source,
197197
chr0: None,
198198
chr1: None,
@@ -210,7 +210,7 @@ where
210210
}
211211
}
212212

213-
impl<T> Iterator for LineContinationHandler<T>
213+
impl<T> Iterator for LineContinuationHandler<T>
214214
where
215215
T: Iterator<Item = char>,
216216
{

0 commit comments

Comments
 (0)