Skip to content

Commit

Permalink
Fix parseStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
sammycage committed Oct 3, 2022
1 parent 637121f commit e0f786c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit e0f786c

Please sign in to comment.