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

Add namespace support for element and attribute names #38

Merged
merged 3 commits into from
Jul 20, 2016

Conversation

msifd
Copy link

@msifd msifd commented Jul 18, 2016

No description provided.

@@ -547,18 +550,30 @@ impl<'cx, 'a, 'i> Parser<'cx, 'a, 'i> {

/// Parses a HTML element or attribute name.
fn name(&mut self) -> PResult<String> {
let mut s = match *self.input {
[ident!(_, name), ..] => {
macro_rules! ident_with_minuses {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be a macro? It looks like it can be written as a plain method.

@lambda-fairy
Copy link
Owner

Looks good, modulo the comment I made above.

@lambda-fairy
Copy link
Owner

Thanks!

@lambda-fairy lambda-fairy merged commit 0f27b19 into lambda-fairy:master Jul 20, 2016
@msifd msifd deleted the feat/namespace branch July 20, 2016 07:55
@msifd msifd restored the feat/namespace branch July 22, 2016 20:31
@msifd msifd deleted the feat/namespace branch July 22, 2016 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants