mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00
fix: higlight async
and of
in REPL (#8569)
This commit is contained in:
parent
108972c966
commit
c74132d3cd
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue