prettycode icon indicating copy to clipboard operation
prettycode copied to clipboard

Suggestion for Twillight colors

Open franzbischoff opened this issue 5 years ago • 1 comments

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:

  • package call, like: crayon:: (should be around #958097)
  • '=' is not treated as operator, and still white. E.g.: function(var = value)
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"))
    )
}

franzbischoff avatar Aug 08 '20 21:08 franzbischoff

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

gaborcsardi avatar Aug 08 '20 22:08 gaborcsardi