Syntax coloring for ? symbol.
See original GitHub issueWhen 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:
- Created 7 years ago
- Reactions:4
- Comments:9 (9 by maintainers)
Top 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 >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 think it makes sense to add a separate color for
?
, and perhaps even make it stand out a bit by default.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.