Skip to content

Fix syntax highlighting for quoted expressions and types #3699

Closed
@nicolasstucki

Description

@nicolasstucki

We are currently using the first kind of quote to avoid formatting issues as shown below. Currently ' assumes that it contains a single Char or an encoded Char such as '\n'.

It would be good to make it an alias to allow users to copy-paste code from the documentation. I have already had this issue and the error message is not that helpful.

val expr1 = ’{ 1 + x }
val expr2 = ’{ y - 9 }
val expr1 = '{ 1 + x }
val expr2 = '{ y - 9 }
'[Int]
'[List[Int]]

Screenshot:
screen shot 2018-02-22 at 14 38 43

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions