From c74132d3cd33a1b07103a49ba2e15dc8bc7ffaea Mon Sep 17 00:00:00 2001 From: Liam Murphy <43807659+Liamolucko@users.noreply.github.com> Date: Wed, 2 Dec 2020 06:52:03 +1100 Subject: fix: higlight `async` and `of` in REPL (#8569) --- cli/tools/repl.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cli/tools/repl.rs') diff --git a/cli/tools/repl.rs b/cli/tools/repl.rs index c610d7e66..9b4d94a23 100644 --- a/cli/tools/repl.rs +++ b/cli/tools/repl.rs @@ -238,6 +238,8 @@ impl Highlighter for LineHighlighter { colors::gray(&line[span]).to_string() } else if ident == *"Infinity" || ident == *"NaN" { colors::yellow(&line[span]).to_string() + } else if ident == *"async" || ident == *"of" { + colors::cyan(&line[span]).to_string() } else { line[span].to_string() } -- cgit v1.2.3