Skip to content

Commit 22cb1cb

Browse files
committed
Fix handling of Delimiter::Bang
1 parent 5389757 commit 22cb1cb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "cssparser"
4-
version = "0.3.7"
4+
version = "0.3.8"
55
authors = [ "Simon Sapin <[email protected]>" ]
66

77
description = "Rust implementation of CSS Syntax Level 3"

src/parser.rs

+1
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ impl Delimiters {
155155
fn from_byte(byte: Option<u8>) -> Delimiters {
156156
match byte {
157157
Some(b';') => Delimiter::Semicolon,
158+
Some(b'!') => Delimiter::Bang,
158159
Some(b',') => Delimiter::Comma,
159160
Some(b'{') => Delimiter::CurlyBracketBlock,
160161
Some(b'}') => ClosingDelimiter::CloseCurlyBracket,

0 commit comments

Comments
 (0)