just 0.4.3

🤖 Just a command runner
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::common::*;

#[derive(PartialEq, Debug)]
pub enum Fragment<'a> {
  Text { text: Token<'a> },
  Expression { expression: Expression<'a> },
}

impl<'a> Fragment<'a> {
  pub fn continuation(&self) -> bool {
    match *self {
      Fragment::Text { ref text } => text.lexeme().ends_with('\\'),
      _ => false,
    }
  }
}