malachi 0.9.8

A domain specific pattern matching language made for defining bot commands.
Documentation
1
2
3
4
5
6
7
8
9
10
11
// SPDX-License-Identifier: Apache-2.0
// Copyright 2024 Taylan Gökkaya

// This file is licensed under the terms of Apache-2.0 License.

use super::IResult;
use crate::parser::prelude::*;

pub fn match_literal<'a>(lit: &'_ str, input: &'a str) -> IResult<&'a str, &'a str> {
	preceded(multispace0, tag(lit))(input)
}