cmake-parser 0.1.0-beta.1

The library to parse cmake language.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use cmake_parser_derive::CMake;

use crate::Token;

#[derive(CMake, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[cmake(pkg = "crate", transparent)]
pub enum FileMatchKind<'t> {
    Pattern(Token<'t>),
    #[cmake(rename = "REGEX")]
    RegEx(Token<'t>),
}