Closed mdequeljoe closed 5 years ago
Love this! I am in the middle of something, but will look at it later today. Thanks much!
Merging #8 into master will increase coverage by
3.5%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #8 +/- ##
=========================================
+ Coverage 83.47% 86.98% +3.5%
=========================================
Files 5 6 +1
Lines 115 146 +31
=========================================
+ Hits 96 127 +31
Misses 19 19
Impacted Files | Coverage Δ | |
---|---|---|
R/highlight.R | 100% <100%> (ø) |
:arrow_up: |
R/brackets.R | 100% <100%> (ø) |
|
R/style.R | 100% <100%> (ø) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update e0e04fe...dcdca0c. Read the comment docs.
Sorry, it took "a bit" longer in the end. :( I think this is great! Can you please add a bullet point to the NEWS, with your GH username and the PR id? Then I'll be most happy to merge it.
Thanks again!
You know what, don't worry about it, I'll do it....
Thanks again!
How could I live without this? I love this feature already.
great thanks!!
This pr proposes the addition of colored brackets in order to help distinguish between scopes.
This is done by adding the entry:
bracket
todefault_style
whereby one can set the list of colouring functions to be used to color brackets.An internal function
color_brackets
is added such that brackets are colored consecutively by the scope level according to the color sequence passed in viabracket
. The following brackets are considered:[[
[
]
(
)
{
}
Note that the counterpart of
[[
is two]
characters instead of]]
as this bracket would be parsed as an 'LBB' token (or as a 'SYMBOL_FUNCTION_CALL' and thus not passed on tocolor_brackets
) Some more details are provided in the documentation.