From bf0e256c3af1af3353c929d52c95b445309bfb83 Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Tue, 27 Sep 2016 21:35:17 +0200 Subject: [PATCH] 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). --- packages/babel-code-frame/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/babel-code-frame/src/index.js b/packages/babel-code-frame/src/index.js index 6291a6eac8..105061f600 100644 --- a/packages/babel-code-frame/src/index.js +++ b/packages/babel-code-frame/src/index.js @@ -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,