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.

Syntax coloring for ? symbol.

See original GitHub issue

When use ? instead of try!() macro there are no evidence of it in the syntax highlighting. That make very hard to identify these exit points.

If you have no time to do it please point me where I should looking for to implement it.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

4reactions
matkladcommented, Nov 29, 2016

I think it makes sense to add a separate color for ?, and perhaps even make it stand out a bit by default.

3reactions
chriskrychocommented, Nov 30, 2016

I’d also suggest bolding the question mark: ? vs. ?, combined with color, would help a lot. I also agree that this and #778 are not mutually exclusive (especially if #778 ends up being a configurable option); there are any number of places where #778 will show that this won’t, even if it would also include all of these. Personally, I’d be inclined not to have #778 enabled in my own codebase, so having this coloring (and bolding?) would still be helpful.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Syntax Coloring
A symbol that is private to a package, but which is used to make function definitions, is colored specially. An example of this...
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 >
Syntax highlighting - Wikipedia
Syntax highlighting is a feature of text editors that are used for programming, scripting, ... source code by an actual arrow symbol (→),...
Read more >
Enhanced Syntax Coloring - Documentation for Visual Assist
Enhanced Syntax Coloring takes precedence over IDE coloring. Specify foreground colors in Visual Assist for classes, variables, preprocessor macros and methods ...
Read more >
How does BBEdit define "Predefined symbols" when syntax ...
Show activity on this post. Predefined symbols are terms which are not language keywords, but which are predefined by a language's reference ...
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