From e0f786c9be6fae1ffabddfe56fb1e0a1a7eb775d Mon Sep 17 00:00:00 2001 From: sammycage Date: Mon, 3 Oct 2022 21:47:29 +0100 Subject: [PATCH] Fix parseStyle --- source/parser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/parser.cpp b/source/parser.cpp index cda095a..e3b20f6 100644 --- a/source/parser.cpp +++ b/source/parser.cpp @@ -1164,8 +1164,8 @@ static inline bool readIdentifier(const char*& ptr, const char* end, std::string return true; } -#define IS_CSS_STARTNAMECHAR(c) (IS_ALPHA(c) || (c) == '_') -#define IS_CSS_NAMECHAR(c) (IS_CSS_STARTNAMECHAR(c) || IS_NUM(c) || (c) == '-') +#define IS_CSS_STARTNAMECHAR(c) (IS_ALPHA(c) || (c) == '_' || (c) == '-') +#define IS_CSS_NAMECHAR(c) (IS_CSS_STARTNAMECHAR(c) || IS_NUM(c)) static inline bool readCSSIdentifier(const char*& ptr, const char* end, std::string& value) { if(ptr >= end || !IS_CSS_STARTNAMECHAR(*ptr))