Skip to content

Commit

Permalink
Fix unintentional fallthrough in keyword parsing (#48717)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #48717

tsia

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D68246769

fbshipit-source-id: a5192880423cb00616981f4e1b24b7819062bc3b
  • Loading branch information
NickGerleman authored and facebook-github-bot committed Jan 16, 2025
1 parent ddf68eb commit 2b925c8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ constexpr std::optional<KeywordT> parseCSSKeyword(std::string_view ident) {
if constexpr (detail::hasFixed<KeywordT>) {
return KeywordT::Fixed;
}
break;
case fnv1a("flex"):
if constexpr (detail::hasFlex<KeywordT>) {
return KeywordT::Flex;
Expand Down Expand Up @@ -399,6 +400,7 @@ constexpr std::optional<KeywordT> parseCSSKeyword(std::string_view ident) {
if constexpr (detail::hasStart<KeywordT>) {
return KeywordT::Start;
}
break;
case fnv1a("static"):
if constexpr (detail::hasStatic<KeywordT>) {
return KeywordT::Static;
Expand Down

0 comments on commit 2b925c8

Please sign in to comment.