[READ-ONLY] Mirror of https://github.com/probablykasper/cpc. Text calculator with support for units and conversion cpc.kasper.space
calculator cli conversion converter library math package units units-converter wasm website
0

Configure Feed

Select the types of activity you want to include in your feed.

Fixed consecutive percentage signs error

Kasper (Nov 14, 2020, 5:00 AM +0100) 7284422e 03b9df23

+4
+4
src/lexer.rs
··· 437 437 // "10%!" should be a percentage 438 438 tokens[token_index] = Token::UnaryOperator(Percent); 439 439 }, 440 + Some(Token::LexerKeyword(PercentChar)) => { 441 + // "10%%" should be a percentage 442 + tokens[token_index] = Token::UnaryOperator(Percent); 443 + }, 440 444 None => { 441 445 // percent if there's no element afterwards 442 446 tokens[token_index] = Token::UnaryOperator(Percent);