Skip to content

Commit

Permalink
chore: rename rome_css_* to biome_css__* (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
nissy-dev authored Sep 7, 2023
1 parent 717232e commit 1decc75
Show file tree
Hide file tree
Showing 34 changed files with 75 additions and 78 deletions.
4 changes: 2 additions & 2 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ A-Parser:
- crates/rome_js_syntax/**
- crates/rome_json_parser/**
- crates/rome_json_syntax/**
- crates/rome_css_parser/**
- crates/rome_css_syntax/**
- crates/biome_css_parser/**
- crates/biome_css_syntax/**

A-Formatter:
- crates/rome_formatter/**
Expand Down
66 changes: 33 additions & 33 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ inherits = "release"

[workspace.dependencies]
# Internal crates
biome_css_factory = { path = "./crates/biome_css_factory" }
biome_css_parser = { path = "./crates/biome_css_parser" }
biome_css_syntax = { path = "./crates/biome_css_syntax" }
biome_lsp = { path = "./crates/biome_lsp" }
biome_markup = { version = "0.0.1", path = "./crates/biome_markup" }
biome_test_utils = { path = "./crates/biome_test_utils" }
Expand All @@ -34,9 +37,6 @@ rome_aria_metadata = { path = "./crates/rome_aria_metadata" }
rome_cli = { path = "./crates/rome_cli" }
rome_console = { version = "0.0.1", path = "./crates/rome_console" }
rome_control_flow = { path = "./crates/rome_control_flow" }
rome_css_factory = { path = "./crates/rome_css_factory" }
rome_css_parser = { path = "./crates/rome_css_parser" }
rome_css_syntax = { path = "./crates/rome_css_syntax" }
rome_deserialize = { version = "0.2.0", path = "./crates/rome_deserialize" }
rome_diagnostics = { version = "0.2.0", path = "./crates/rome_diagnostics" }
rome_diagnostics_categories = { version = "0.2.0", path = "./crates/rome_diagnostics_categories" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
authors.workspace = true
edition.workspace = true
license.workspace = true
name = "rome_css_factory"
name = "biome_css_factory"
repository.workspace = true
version = "0.2.0"


# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
rome_css_syntax = { workspace = true }
rome_rowan = { workspace = true }
biome_css_syntax = { workspace = true }
rome_rowan = { workspace = true }
File renamed without changes.

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

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

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
pub use crate::generated::CssSyntaxFactory;
use rome_css_syntax::CssLanguage;
use biome_css_syntax::CssLanguage;
use rome_rowan::TreeBuilder;

mod generated;

// Re-exported for tests
#[doc(hidden)]
pub use rome_css_syntax as syntax;
pub use biome_css_syntax as syntax;

pub type CssSyntaxTreeBuilder = TreeBuilder<'static, CssLanguage, CssSyntaxFactory>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
authors.workspace = true
categories = ["parser-implementations", "development-tools"]
description = "An extremely fast CSS parser"
documentation = "https://docs.rs/rome_css_parser"
documentation = "https://docs.rs/biome_css_parser"
edition.workspace = true
homepage.workspace = true
license.workspace = true
name = "rome_css_parser"
name = "biome_css_parser"
repository.workspace = true
version = "0.1.0"

[dependencies]
biome_css_factory = { workspace = true }
biome_css_syntax = { workspace = true }
rome_console = { workspace = true }
rome_css_factory = { workspace = true }
rome_css_syntax = { workspace = true }
rome_diagnostics = { workspace = true }
rome_js_unicode_table = { workspace = true }
rome_parser = { workspace = true }
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@
[discord-url]: https://discord.gg/BypW39g6Yc
[ci-badge]: https://github.com/biomejs/biome/actions/workflows/main.yml/badge.svg
[ci-url]: https://github.com/biomejs/biome/actions/workflows/main.yml
[cargo-badge]: https://badgen.net/crates/v/rome_css_parser?&color=green
[cargo-url]: https://crates.io/crates/rome_css_parser/
[cargo-badge]: https://badgen.net/crates/v/biome_css_parser?&color=green
[cargo-url]: https://crates.io/crates/biome_css_parser/

</div>

# `rome_css_parser`

Biome's CSS parser implementation. Follow the [documentation](https://docs.rs/rome_css_parser/latest).
# `biome_css_parser`

Biome's CSS parser implementation. Follow the [documentation](https://docs.rs/biome_css_parser/latest).
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
mod tests;

use crate::CssParserOptions;
use rome_css_syntax::{CssSyntaxKind, CssSyntaxKind::*, TextLen, TextRange, TextSize, T};
use biome_css_syntax::{CssSyntaxKind, CssSyntaxKind::*, TextLen, TextRange, TextSize, T};
use rome_js_unicode_table::{is_id_continue, is_id_start, lookup_byte, Dispatch::*};
use rome_parser::diagnostic::ParseDiagnostic;
use std::char::REPLACEMENT_CHARACTER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ macro_rules! assert_lex {
$(
assert_eq!(
tokens[idx].kind,
rome_css_syntax::CssSyntaxKind::$kind,
biome_css_syntax::CssSyntaxKind::$kind,
"expected token kind {}, but found {:?}",
stringify!($kind),
tokens[idx].kind,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
use crate::parser::CssParser;

use crate::syntax::parse_root;
use biome_css_factory::CssSyntaxFactory;
use biome_css_syntax::{CssLanguage, CssRoot, CssSyntaxNode};
pub use parser::CssParserOptions;
use rome_css_factory::CssSyntaxFactory;
use rome_css_syntax::{CssLanguage, CssRoot, CssSyntaxNode};
pub use rome_parser::prelude::*;
use rome_parser::tree_sink::LosslessTreeSink;
use rome_rowan::{AstNode, NodeCache};
Expand Down Expand Up @@ -60,13 +60,13 @@ impl CssParse {
/// The syntax node represented by this Parse result
///
/// ```
/// # use rome_css_parser::parse_css;
/// # use rome_css_syntax::CssSyntaxKind;
/// # use biome_css_parser::parse_css;
/// # use biome_css_syntax::CssSyntaxKind;
/// # use rome_rowan::{AstNode, AstNodeList, SyntaxError};
///
/// # fn main() -> Result<(), SyntaxError> {
/// use rome_css_syntax::CssSyntaxKind;
/// use rome_css_parser::CssParserOptions;
/// use biome_css_syntax::CssSyntaxKind;
/// use biome_css_parser::CssParserOptions;
/// let parse = parse_css(r#""#, CssParserOptions::default());
///
/// let root_value = parse.tree().rules();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::token_source::CssTokenSource;
use rome_css_syntax::CssSyntaxKind;
use biome_css_syntax::CssSyntaxKind;
use rome_parser::diagnostic::merge_diagnostics;
use rome_parser::event::Event;
use rome_parser::prelude::*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pub use rome_css_syntax::T;
pub use biome_css_syntax::T;
pub use rome_parser::prelude::*;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::parser::CssParser;
use rome_css_syntax::CssSyntaxKind::*;
use biome_css_syntax::CssSyntaxKind::*;
use rome_parser::Parser;

pub(crate) fn parse_root(p: &mut CssParser) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::lexer::{Lexer, Token};
use crate::CssParserOptions;
use rome_css_syntax::CssSyntaxKind::{EOF, TOMBSTONE};
use rome_css_syntax::{CssSyntaxKind, TextRange};
use biome_css_syntax::CssSyntaxKind::{EOF, TOMBSTONE};
use biome_css_syntax::{CssSyntaxKind, TextRange};
use rome_parser::diagnostic::ParseDiagnostic;
use rome_parser::prelude::TokenSource;
use rome_parser::token_source::Trivia;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/rome_css_parser/tests/spec_test.rs
source: crates/biome_css_parser/tests/spec_test.rs
expression: snapshot
---

Expand Down Expand Up @@ -27,5 +27,3 @@ CssRoot {
1: [email protected] "" [] []
```


Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use biome_css_parser::{parse_css, CssParserOptions};
use rome_console::fmt::{Formatter, Termcolor};
use rome_console::markup;
use rome_css_parser::{parse_css, CssParserOptions};
use rome_diagnostics::display::PrintDiagnostic;
use rome_diagnostics::termcolor;
use rome_diagnostics::DiagnosticExt;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
authors.workspace = true
description = "SyntaxKind and common rowan definitions for rome_css_parser"
documentation = "https://docs.rs/rome_css_parser"
description = "SyntaxKind and common rowan definitions for biome_css_parser"
documentation = "https://docs.rs/biome_css_parser"
edition.workspace = true
license.workspace = true
name = "rome_css_syntax"
name = "biome_css_syntax"
repository.workspace = true
version = "0.2.0"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/@biomejs/js-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ console.log('Lint diagnostics: ', html);

## Philosophy

The project philosophy can be found on our [website](https://docs.rome.tools/internals/philosophy/).
The project philosophy can be found on our [website](https://biomejs.dev/internals/philosophy/).

## Community

Expand Down
2 changes: 1 addition & 1 deletion xtask/codegen/src/generate_syntax_factory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub fn generate_syntax_factory(ast: &AstSrc, language_kind: LanguageKind) -> Res
quote! { JsSyntaxFactory },
),
LanguageKind::Css => (
quote! { rome_css_syntax },
quote! { biome_css_syntax },
quote! { CssSyntaxKind },
quote! { CssSyntaxFactory },
),
Expand Down
4 changes: 2 additions & 2 deletions xtask/codegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@ impl LanguageKind {
pub fn syntax_crate_name(&self) -> &'static str {
match self {
LanguageKind::Js => "rome_js_syntax",
LanguageKind::Css => "rome_css_syntax",
LanguageKind::Css => "biome_css_syntax",
LanguageKind::Json => "rome_json_syntax",
}
}

pub fn factory_crate_name(&self) -> &'static str {
match self {
LanguageKind::Js => "rome_js_factory",
LanguageKind::Css => "rome_css_factory",
LanguageKind::Css => "biome_css_factory",
LanguageKind::Json => "rome_json_factory",
}
}
Expand Down

0 comments on commit 1decc75

Please sign in to comment.