//! `break`.
use crate::ast::Stmt;
use crate::parser::{PResult, Parser};
use crate::words::{Role, Word};
pub static WORD: Word = Word {
text: "break",
doc: "Leaves the loop it's in.",
reserved: true,
roles: &[Role::Stmt { parse }],
};
fn parse(p: &mut Parser) -> PResult<Stmt> {
Ok(Stmt::Break(p.bump().span))
}