Skip to content

Commit

Permalink
babel-code-frame: Highlight strings with green (not red) (babel#4579)
Browse files Browse the repository at this point in the history
- 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 fa1de5c (PR babel#4572).
  • Loading branch information
lydell authored and panagosg7 committed Jan 17, 2017
1 parent 5e711bb commit e54132d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-code-frame/src/index.js
Expand Up @@ -13,7 +13,7 @@ let defs = {
punctuator: chalk.yellow,
// bracket: intentionally omitted.
number: chalk.magenta,
string: chalk.red,
string: chalk.green,
regex: chalk.magenta,
comment: chalk.grey,
invalid: chalk.white.bgRed.bold,
Expand Down

0 comments on commit e54132d

Please sign in to comment.