You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
RStudio has an optional feature to enable highlighting for functons, which offers a great increase in readability. Additionally, separate highlighting for operators, including custom binary operators (like the pipe %>%) would be quite helpful as well!
Here's a bit of code in RStudio:
And the same with RTVS:
Hopefully this can be implemented in future updates. Thank you!
The text was updated successfully, but these errors were encountered:
VS has operator colors :-) It is just default is black.
Function colors somewhat more difficult since it technically requires semantic analysis. However, simple approach would be to color anything that has following ( (except keywords) as functions.
Not too complicated, but fairly extensive change. Classifier currently gets a single token while it needs to get token collection and the current token index so it can determine if this is a function. Unfortunately, connection operations currently return elements and not indices. Also, tokenizer needs to run past the changed range since it needs to pick up the brace while it might be off-screen. Example
func|( <<- edge of the screen
VS request for colors in the range would not include '(` since it is off screen. Tokenizer needs to picks few items beyond .the visual range then
RStudio has an optional feature to enable highlighting for functons, which offers a great increase in readability. Additionally, separate highlighting for operators, including custom binary operators (like the pipe %>%) would be quite helpful as well!
Here's a bit of code in RStudio:
And the same with RTVS:
Hopefully this can be implemented in future updates. Thank you!
The text was updated successfully, but these errors were encountered: