From cb3e69df8b17ffc0cab721e2dcc285731a1c5bc9 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Sun, 26 Dec 2021 14:09:27 +0100 Subject: Add functions to highlighting list --- src/readline.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/readline.rs b/src/readline.rs index d689f95..2939ee1 100644 --- a/src/readline.rs +++ b/src/readline.rs @@ -55,7 +55,7 @@ impl Highlighter for LineHighlighter { let functions = [ "sin", "cos", "tan", "csc", "sec", "cot", "sinh", "cosh", "tanh", "ln", "log", "sqrt", "ceil", "floor", "rad", "deg", "abs", "asin", "acos", "atan", "acsc", - "asec", "acot", + "asec", "acot", "exp2", "exp" ]; let ops = Regex::new(r"(?P[\+-/\*%\^!])").unwrap(); let mut coloured: String = ops.replace_all(line, "\x1b[35m$o\x1b[0m").into(); -- cgit v1.2.3