Skip to content

Commit

Permalink
feat(css_parser): CSS Parser color profile at rule biomejs#268 (biome…
Browse files Browse the repository at this point in the history
  • Loading branch information
denbezrukov authored and yossydev committed Dec 3, 2023
1 parent 0aa1527 commit 5544a4e
Show file tree
Hide file tree
Showing 59 changed files with 2,048 additions and 1,775 deletions.
60 changes: 44 additions & 16 deletions crates/biome_css_factory/src/generated/node_factory.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

93 changes: 85 additions & 8 deletions crates/biome_css_factory/src/generated/syntax_factory.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 11 additions & 9 deletions crates/biome_css_parser/src/lexer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -741,13 +741,13 @@ impl<'src> CssLexer<'src> {
b"dir" => DIR_KW,
b"global" => GLOBAL_KW,
b"local" => LOCAL_KW,
b"-moz-any" => MOZANY_KW,
b"-webkit-any" => WEBKITANY_KW,
b"-moz-any" => _MOZ_ANY_KW,
b"-webkit-any" => _WEBKIT_ANY_KW,
b"past" => PAST_KW,
b"current" => CURRENT_KW,
b"future" => FUTURE_KW,
b"host" => HOST_KW,
b"host-context" => HOSTCONTEXT_KW,
b"host-context" => HOST_CONTEXT_KW,
b"not" => NOT_KW,
b"matches" => MATCHES_KW,
b"is" => IS_KW,
Expand All @@ -757,15 +757,17 @@ impl<'src> CssLexer<'src> {
b"n" => N_KW,
b"even" => EVEN_KW,
b"odd" => ODD_KW,
b"nth-child" => NTHCHILD_KW,
b"nth-last-child" => NTHLASTCHILD_KW,
b"nth-of-type" => NTHOFTYPE_KW,
b"nth-last-of-type" => NTHLASTOFTYPE_KW,
b"nth-col" => NTHCOL_KW,
b"nth-last-col" => NTHLASTCOL_KW,
b"nth-child" => NTH_CHILD_KW,
b"nth-last-child" => NTH_LAST_CHILD_KW,
b"nth-of-type" => NTH_OF_TYPE_KW,
b"nth-last-of-type" => NTH_LAST_OF_TYPE_KW,
b"nth-col" => NTH_COL_KW,
b"nth-last-col" => NTH_LAST_COL_KW,
b"ltr" => LTR_KW,
b"rtl" => RTL_KW,
b"charset" => CHARSET_KW,
b"color-profile" => COLOR_PROFILE_KW,
b"counter-style" => COUNTER_STYLE_KW,
_ => IDENT,
}
}
Expand Down
Loading

0 comments on commit 5544a4e

Please sign in to comment.