-
-
Notifications
You must be signed in to change notification settings - Fork 543
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(parse/html): split
HtmlName
into HtmlTagName
and `HtmlAt…
…tributeName`
- Loading branch information
Showing
41 changed files
with
723 additions
and
536 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
65 changes: 42 additions & 23 deletions
65
crates/biome_html_factory/src/generated/syntax_factory.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
crates/biome_html_formatter/src/html/auxiliary/attribute_name.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
use crate::prelude::*; | ||
use biome_formatter::write; | ||
use biome_html_syntax::{HtmlAttributeName, HtmlAttributeNameFields}; | ||
#[derive(Debug, Clone, Default)] | ||
pub(crate) struct FormatHtmlAttributeName; | ||
impl FormatNodeRule<HtmlAttributeName> for FormatHtmlAttributeName { | ||
fn fmt_fields(&self, node: &HtmlAttributeName, f: &mut HtmlFormatter) -> FormatResult<()> { | ||
let HtmlAttributeNameFields { value_token } = node.as_fields(); | ||
|
||
write![f, [value_token.format()]] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
crates/biome_html_formatter/src/html/auxiliary/tag_name.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
use crate::prelude::*; | ||
use biome_formatter::write; | ||
use biome_html_syntax::{HtmlTagName, HtmlTagNameFields}; | ||
#[derive(Debug, Clone, Default)] | ||
pub(crate) struct FormatHtmlTagName; | ||
impl FormatNodeRule<HtmlTagName> for FormatHtmlTagName { | ||
fn fmt_fields(&self, node: &HtmlTagName, f: &mut HtmlFormatter) -> FormatResult<()> { | ||
let HtmlTagNameFields { value_token } = node.as_fields(); | ||
|
||
write![f, [value_token.format()]] | ||
} | ||
} |
Oops, something went wrong.