Fixed consecutive percentage signs error
This commit is contained in:
parent
03b9df2362
commit
7284422ec0
@ -437,6 +437,10 @@ pub fn lex(input: &str, allow_trailing_operators: bool, default_degree: Unit) ->
|
|||||||
// "10%!" should be a percentage
|
// "10%!" should be a percentage
|
||||||
tokens[token_index] = Token::UnaryOperator(Percent);
|
tokens[token_index] = Token::UnaryOperator(Percent);
|
||||||
},
|
},
|
||||||
|
Some(Token::LexerKeyword(PercentChar)) => {
|
||||||
|
// "10%%" should be a percentage
|
||||||
|
tokens[token_index] = Token::UnaryOperator(Percent);
|
||||||
|
},
|
||||||
None => {
|
None => {
|
||||||
// percent if there's no element afterwards
|
// percent if there's no element afterwards
|
||||||
tokens[token_index] = Token::UnaryOperator(Percent);
|
tokens[token_index] = Token::UnaryOperator(Percent);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user