From 8dbb73e6d227cad669e2d1e0c4757c1ee12f2454 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Mon, 7 Sep 2015 15:33:54 +0200 Subject: [PATCH] Add Delimiter::Bang for CSS Custom Properties. --- Cargo.toml | 2 +- src/parser.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 9d518a53..c2e8e55d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "cssparser" -version = "0.3.6" +version = "0.3.7" authors = [ "Simon Sapin " ] description = "Rust implementation of CSS Syntax Level 3" diff --git a/src/parser.rs b/src/parser.rs index 6f04b88d..a039864b 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -124,6 +124,8 @@ pub mod Delimiter { pub const CurlyBracketBlock: Delimiters = Delimiters { bits: 1 << 1 }; /// The delimiter set with only the `;` semicolon pub const Semicolon: Delimiters = Delimiters { bits: 1 << 2 }; + /// The delimiter set with only the `!` exclamation point + pub const Bang: Delimiters = Delimiters { bits: 1 << 3 }; /// The delimiter set with only the `,` comma pub const Comma: Delimiters = Delimiters { bits: 1 << 4 }; }