Fix syntax highlighting for quoted expressions and types
See original GitHub issue- Add fix to VS code
- Add fix to GitHub (https://github.com/github/linguist/pull/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]]
Screenshot:
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
A case against syntax highlighting - Linus Åkesson
Syntax highlighting is a standard feature of most modern text editors and development environments. The basic idea is to exaggerate the visual ...
Read more >back-double-quoted-argument not working · Issue #480 - GitHub
When using zsh-syntax-highlighting rev c969a1f on zsh 5.3.1 (x86_64-pc-linux-gnu), backslashed symbols won't be colored differently from the ...
Read more >Syntax Highlight Guide | Visual Studio Code Extension API
Syntax highlighting determines the color and style of source code displayed in the Visual Studio Code editor. It is responsible for colorizing keywords...
Read more >Octave syntax highlighting incorrect for single-quoted strings
This guide worked for this forum: In the “admin” panel under “Customize” > “Themes” > “Neutral” there is a button “Edit CSS/HTML”. Clicking...
Read more >Writing Syntax Highlighting Patterns
For example, to highlight everything between double quotes, you would enter a double quote character in both the starting and ending regular expression...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I managed to edit that template and fix the issue.
I would say, let’s do both: Fix the syntax highlighting and introduce the alias.