Searched refs:token_str (Results 1 – 1 of 1) sorted by relevance
143 let token_str = mat.as_str(); in lexer() localVariable144 if token_str.starts_with('"') || token_str.starts_with('\'') { in lexer()145 tokens.push(Token::Word(token_str[1..token_str.len() - 1].to_string())); in lexer()146 } else if token_str.starts_with('$') { in lexer()147 tokens.push(Token::Word(Self::parse_env(&token_str[1..]))); in lexer()148 } else if token_str == ">>" in lexer()149 || token_str == ">" in lexer()150 || token_str == "<<" in lexer()151 || token_str == "<" in lexer()152 || token_str == "|" in lexer()[all …]