Skip to content

Commit fdeaa73

Browse files
committed
Current cli seems to use different colors when highlighting R code
1 parent 42f8b08 commit fdeaa73

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tests/testthat/_snaps/utils-ui.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@
143143
ui_code_snippet(
144144
"\n options(\n warnPartialMatchArgs = TRUE,\n warnPartialMatchDollar = TRUE,\n warnPartialMatchAttr = TRUE\n )")
145145
Message
146-
[36moptions[39m[33m([39m
147-
warnPartialMatchArgs = [34mTRUE[39m,
148-
warnPartialMatchDollar = [34mTRUE[39m,
149-
warnPartialMatchAttr = [34mTRUE[39m
146+
[1moptions[22m[33m([39m
147+
warnPartialMatchArgs = [35mTRUE[39m,
148+
warnPartialMatchDollar = [35mTRUE[39m,
149+
warnPartialMatchAttr = [35mTRUE[39m
150150
)
151151

152152
# ui_code_snippet() with vector input [plain]
@@ -167,10 +167,10 @@
167167
ui_code_snippet(c("options(", " warnPartialMatchArgs = TRUE,",
168168
" warnPartialMatchDollar = TRUE,", " warnPartialMatchAttr = TRUE", ")"))
169169
Message
170-
[36moptions[39m[33m([39m
171-
warnPartialMatchArgs = [34mTRUE[39m,
172-
warnPartialMatchDollar = [34mTRUE[39m,
173-
warnPartialMatchAttr = [34mTRUE[39m
170+
[1moptions[22m[33m([39m
171+
warnPartialMatchArgs = [35mTRUE[39m,
172+
warnPartialMatchDollar = [35mTRUE[39m,
173+
warnPartialMatchAttr = [35mTRUE[39m
174174
)
175175

176176
# ui_code_snippet() when language is not R [plain]
@@ -199,7 +199,7 @@
199199
Code
200200
ui_code_snippet("if (1) {true_val} else {false_val}")
201201
Message
202-
[31mif[39m [33m([39m[34m1[39m[33m)[39m [34mTRUE[39m [31melse[39m [33m'FALSE'[39m
202+
[33mif[39m [33m([39m[35m1[39m[33m)[39m [35mTRUE[39m [33melse[39m [36m'FALSE'[39m
203203

204204
# ui_code_snippet() can NOT interpolate [plain]
205205

@@ -217,11 +217,11 @@
217217
Code
218218
ui_code_snippet("foo <- function(x){x}", interpolate = FALSE)
219219
Message
220-
foo [32m<-[39m [31mfunction[39m[33m([39mx[33m)[39m[33m{[39mx[33m}[39m
220+
foo [33m<-[39m [33mfunction[39m[33m([39mx[33m)[39m[33m{[39mx[33m}[39m
221221
Code
222222
ui_code_snippet("foo <- function(x){{x}}", interpolate = TRUE)
223223
Message
224-
foo [32m<-[39m [31mfunction[39m[33m([39mx[33m)[39m[33m{[39mx[33m}[39m
224+
foo [33m<-[39m [33mfunction[39m[33m([39mx[33m)[39m[33m{[39mx[33m}[39m
225225

226226
# bulletize() works
227227

0 commit comments

Comments
 (0)