Closed
Description
- Add fix to VS code
- Add fix to GitHub (Update Scala syntax grammar github-linguist/linguist#4044)
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]]