Skip to content

REPL renders syntax highlighting colors INSIDE of strings when echoing evaluated values, happens after colon : and leading val #11555

Open
@bjornregnell

Description

@bjornregnell

Compiler version

3.0.0-RC1 and also in 3.0.0-RC2-bin-20210226-63a467b-NIGHTLY

Minimized code

If you enter this in REPL strange colors will emerge in echo: (see output png below)

scala> "a A"
val res0: String = a A

scala> "a: A"
val res1: String = a: A

scala> "a: A B C"                                                                                                              
val res2: String = a: A B C

scala> "a: A, B, C"                                                                                                            
val res3: String = a: A, B, C

scala> "val a: A, B, C"                                                                                                        
val res4: String = val a: A, B, C

Output

image

Expectation

Syntax highlighting should not be activated when rendering of characters inside string values when echoed.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions