pomsky 0.12.0

A new regular expression language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Contains the [`Grapheme`] type, which matches a
//! [Unicode grapheme](https://www.regular-expressions.info/unicode.html#grapheme).

use crate::{compile::CompileResult, options::CompileOptions, regex::Regex};

/// The dot, matching anything except line breaks
#[derive(Clone, Copy, PartialEq, Eq)]
#[cfg_attr(feature = "dbg", derive(Debug))]
pub(crate) struct Dot {}

impl Dot {
    pub(crate) fn compile(&self, _: CompileOptions) -> CompileResult {
        Ok(Regex::Dot)
    }
}