-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix syntax highlighting for quoted expressions and types #3699
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
Comments
According to https://github.com/github/linguist/blob/master/vendor/README.md, syntax highligthing for Scala in Github is done using https://github.com/mads-hartmann/scala.tmbundle/tree/master/Syntaxes. The grammar could be fixed there. |
In fact, the syntax highlighting of |
For the record, the same issue exists in the IDE. |
Yes, because the IDE syntax highlighting file is based on the one from https://github.com/mads-hartmann/scala.tmbundle/tree/master/Syntaxes :). |
Perfect, we only need to fix one highlighter :) |
I would say, let's do both: Fix the syntax highlighting and introduce the alias. |
mads-hartmann/scala.tmbundle#63 fixes the highlighting issue with the quoted symbols. We should try to enhance that fix to also fix quoted expressions and types. |
’
be an alias for '
The PR you link to has been open for 16 days with zero response. If the repo owner is unresponsive we should consider forking it and somehow convince Github to switch to our version. |
Yes, I saw that. We should instead look at https://github.com/daltonjorge/vscode-scala and maybe fork it |
I managed to edit that template and fix the issue. |
I created a copy of the VS code extension Scala (Dotty) Syntax. @smarter the Dotty Language server should depend on this extension now. How do we do this? |
The simplest thing to do would be to just inline the content of this extension in vscode-dotty and not depend on anything. However we need to check what happens if multiple extensions for Scala syntax are installed together. Do they conflict with each other in some way? If so, the best thing to do would indeed be to make a separate extension but also to get every other Scala vscode extension to depend on this one. Grep for |
FInally fixed |
Uh oh!
There was an error while loading. Please reload this page.
We are currently using the first kind of quote to avoid formatting issues as shown below. Currently
'
assumes that it contains a singleChar
or an encodedChar
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.
Screenshot:

The text was updated successfully, but these errors were encountered: