r-lib / prettycode

Syntax highlight R code in the terminal
https://r-lib.github.io/prettycode/
Other
101 stars 9 forks source link

Suggestion for Twillight colors #15

Open franzbischoff opened 4 years ago

franzbischoff commented 4 years ago

the current style is not correct and I didn't find any way to set the "default" style using option() for ex...

Still, is missing at least two parameters:

function() {
    list(
        reserved = crayon::make_style("#c7a366"),
        number   = crayon::make_style("#c36448"),
        null     = crayon::make_style("#c36448"),
        operator = crayon::make_style("#7587a6"),
        call     = crayon::make_style("#cec47e"),
        string   = crayon::make_style("#8f9d6a"),
        comment  = crayon::make_style("#5F5A60"),
        bracket  = list(crayon::make_style("#7587A6"))
    )
}
gaborcsardi commented 4 years ago

Note: tokens are here: https://github.com/wch/r-source/blob/abb550c99b3927e5fc03d12f1a8e7593fddc04d2/src/main/gram.c#L511