fn parse_tag(&mut self) -> TagToken {
        let mut token = TagToken::default();
        if self.is_tag_negated() {
            assert_eq!(self.base_parser.consume_char(), '-');
            token.negated = true;
        }

        token.name = self.base_parser.consume_while(valid_tag).to_lowercase();

        // This will be considered a special tag if it contains the syntax of one.
        if !self.base_parser.eof() && self.base_parser.next_char() == ':' {
            self.parse_special_tag(&mut token);
        }

        token
    }
/// Parses tag and runs through basic identification before returning it as a [`TagToken`].
Parses tag and runs through basic identification before returning it as a [`TagToken`].
Parses tag and runs through basic identification before returning it as a [ ` TagToken ` ] .
fn parse_tag(&mut self) -> TagToken {
        let mut token = TagToken::default();
        if self.is_tag_negated() {
            assert_eq!(self.base_parser.consume_char(), '-');
            token.negated = true;
        }
        token.name = self.base_parser.consume_while(valid_tag).to_lowercase();
        // This will be considered a special tag if it contains the syntax of one.
        if !self.base_parser.eof() && self.base_parser.next_char() == ':' {
            self.parse_special_tag(&mut token);
        }
        token
    }
fn parse_tag ( & mut self ) -> TagToken { let mut token = TagToken :: default ( ) ; if self . is_tag_negated ( ) { assert_eq ! ( self base_parser consume_char ( ) '-' ) ; token . negated = true ; } token . name = self . base_parser . consume_while ( valid_tag ) . to_lowercase ( ) ; // This will be considered a special tag if it contains the syntax of one. if ! self . base_parser . eof ( ) && self . base_parser . next_char ( ) == ':' { self . parse_special_tag ( & mut token ) ; } token }
Parses tag and runs through basic identification before returning it as a [`TagToken`].
Parses tag and runs through basic identification before returning it as a [ ` TagToken ` ] .
&mut self
&mut self