Use a `Token` to represent the error context, instead of a mess of fields. Remove write_message_context in favor of `Token::write_context`.
10 lines
207 B
Rust
10 lines
207 B
Rust
use crate::common::*;
|
|
|
|
#[derive(Copy, Clone, PartialEq, Debug)]
|
|
pub(crate) enum State<'src> {
|
|
Normal,
|
|
Indented { indentation: &'src str },
|
|
Text,
|
|
Interpolation { interpolation_start: Token<'src> },
|
|
}
|