question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix syntax highlighting for quoted expressions and types

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
nicolasstuckicommented, Jan 19, 2018

I managed to edit that template and fix the issue.

1reaction
oderskycommented, Dec 27, 2017

I would say, let’s do both: Fix the syntax highlighting and introduce the alias.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found