babel-code-frame: Highlight strings with green (not red) (#4579)
- Red makes it look like something is wrong with the string. - On Ubuntu-based systems, it looks kinda broken. - The error markers (`>` and `^`) as well as invalid tokens are already marked with red. By not having strings red, the most important information -- the error location -- is more visible. This is a continuation of commit fa1de5ce (PR #4572).
This commit is contained in:
parent
e40aad53a4
commit
bf0e256c3a
@ -13,7 +13,7 @@ let defs = {
|
|||||||
punctuator: chalk.yellow,
|
punctuator: chalk.yellow,
|
||||||
// bracket: intentionally omitted.
|
// bracket: intentionally omitted.
|
||||||
number: chalk.magenta,
|
number: chalk.magenta,
|
||||||
string: chalk.red,
|
string: chalk.green,
|
||||||
regex: chalk.magenta,
|
regex: chalk.magenta,
|
||||||
comment: chalk.grey,
|
comment: chalk.grey,
|
||||||
invalid: chalk.white.bgRed.bold,
|
invalid: chalk.white.bgRed.bold,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user