Skip to content

Conversation

@Duhemm
Copy link
Contributor

@Duhemm Duhemm commented Sep 12, 2018

The (successful) result of the REPL was highlighted regardless of the
value of -color. This commit fixes this, so that the output of the
REPL is highlighted only if -color is not set to never.

The prompt and the code as being entered are still highlighted.

Copy link
Contributor

@allanrenucci allanrenucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think SyntaxHighlighting.apply should take a Context and only highlight if settings.color.value != "never". That's how it's done in #4537

If `-color:never` is set, the REPL will not do any syntax highlighting.
@Duhemm Duhemm force-pushed the fix/repl-nocolor-highlighting branch from cad0686 to a592293 Compare September 12, 2018 14:39
Copy link
Contributor

@allanrenucci allanrenucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Duhemm Duhemm merged commit 7dc2226 into scala:master Sep 12, 2018
@allanrenucci allanrenucci deleted the fix/repl-nocolor-highlighting branch September 12, 2018 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants