Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(biome_grit_formatter): initial infrastructure #2837

Merged
merged 5 commits into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions Cargo.lock

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

12 changes: 2 additions & 10 deletions crates/biome_grit_formatter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,13 @@ version = "0.0.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
biome_diagnostics = { workspace = true }
biome_formatter = { workspace = true }
biome_grit_syntax = { workspace = true }
biome_rowan = { workspace = true }
biome_suppression = { workspace = true }

[dev-dependencies]
biome_formatter_test = { path = "../biome_formatter_test" }
biome_grit_parser = { path = "../biome_grit_parser" }
biome_parser = { path = "../biome_parser" }
biome_service = { path = "../biome_service" }
countme = { workspace = true, features = ["enable"] }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
tests_macros = { path = "../tests_macros" }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
ematipico marked this conversation as resolved.
Show resolved Hide resolved

# cargo-workspaces metadata
[package.metadata.workspaces]
Expand Down
4 changes: 1 addition & 3 deletions xtask/codegen/src/formatter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -796,9 +796,7 @@ fn get_node_concept(
_ if name.contains("Operation") || name.contains("Pattern") => NodeConcept::Pattern,
_ if name.contains("Predicate") => NodeConcept::Predicate,
_ if name.ends_with("Definition") => NodeConcept::Declaration,
_ if matches!(name, "CodeSnippet") || name.ends_with("Literal") => {
NodeConcept::Value
}
_ if name == "CodeSnippet" || name.ends_with("Literal") => NodeConcept::Value,
_ => NodeConcept::Auxiliary,
},

Expand Down
Loading