Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

babel-code-frame: Highlight strings with green (not red) #4579

Merged
merged 1 commit into from Sep 27, 2016

Conversation

lydell
Copy link
Contributor

@lydell lydell commented Sep 27, 2016

Q A
Bug fix? no
Breaking change? no
New feature? no
Deprecations? no
Spec compliancy? no
Tests added/pass? ye
Fixed tickets -
License MIT
Doc PR -
  • 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 #4572).

Before:

screenshot from 2016-09-27 16-29-34

After:

screenshot from 2016-09-27 16-30-04

- 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).
@codecov-io
Copy link

codecov-io commented Sep 27, 2016

Current coverage is 88.68% (diff: 100%)

Merging #4579 into master will not change coverage

@@             master      #4579   diff @@
==========================================
  Files           192        192          
  Lines         13649      13649          
  Methods        1414       1414          
  Messages          0          0          
  Branches       3151       3151          
==========================================
  Hits          12105      12105          
  Misses         1544       1544          
  Partials          0          0          

Powered by Codecov. Last update e40aad5...6017125

@hzoo hzoo added the PR: Polish 💅 A type of pull request used for our changelog categories label Sep 27, 2016
@hzoo hzoo merged commit bf0e256 into babel:master Sep 27, 2016
@lydell lydell deleted the nicer-syntax-highlighting branch September 28, 2016 05:15
lydell referenced this pull request in postcss/postcss Sep 29, 2016
panagosg7 pushed a commit to panagosg7/babel that referenced this pull request Jan 17, 2017
- 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).
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 7, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Polish 💅 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants