aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/readline.rs2
1 files changed, 1 insertions, 1 deletions
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 {
55 let functions = [ 55 let functions = [
56 "sin", "cos", "tan", "csc", "sec", "cot", "sinh", "cosh", "tanh", "ln", "log", 56 "sin", "cos", "tan", "csc", "sec", "cot", "sinh", "cosh", "tanh", "ln", "log",
57 "sqrt", "ceil", "floor", "rad", "deg", "abs", "asin", "acos", "atan", "acsc", 57 "sqrt", "ceil", "floor", "rad", "deg", "abs", "asin", "acos", "atan", "acsc",
58 "asec", "acot", 58 "asec", "acot", "exp2", "exp"
59 ]; 59 ];
60 let ops = Regex::new(r"(?P<o>[\+-/\*%\^!])").unwrap(); 60 let ops = Regex::new(r"(?P<o>[\+-/\*%\^!])").unwrap();
61 let mut coloured: String = ops.replace_all(line, "\x1b[35m$o\x1b[0m").into(); 61 let mut coloured: String = ops.replace_all(line, "\x1b[35m$o\x1b[0m").into();