frankyonnetti / gravity-sublime-theme

A Sublime Text theme that feels right at home on macOS
https://frankyonnetti.github.io/gravity-sublime-theme/
396 stars 26 forks source link

One Dark: missing color for keyword.operator #67

Closed rwols closed 3 years ago

rwols commented 3 years ago
image
rwols commented 3 years ago

in text form (set syntax to C++):

static bool report_failed_check( const char* const file, const int line, const char * const condition )
{
    std::cout << "check failed! (file " << file << ", line " << line << "): " << condition << '\n';
    ++failed_checks;
    return false;
}
frankyonnetti commented 3 years ago

That's strange, because I have that set as purple in the scheme file.

"variables": { "purple1": "hsl(286.3, 59.8%, 66.9%)" },
{
    "name": "Keyword",
    "scope": "keyword - (source.c keyword.operator | source.c++ keyword.operator | source.objc keyword.operator | source.objc++ keyword.operator), keyword.operator.word",
    "foreground": "var(purple1)"
},
rwols commented 3 years ago

You're excluding source.c++ keyword.operator for some reason :)

From the ST console:

>>> sublime.score_selector("source.c++ meta.function.c++ meta.block.c++ keyword.operator.arithmetic.c", "keyword - (source.c keyword.operator | source.c++ keyword.operator | source.objc keyword.operator | source.objc++ keyword.operator), keyword.operator.word")
0

I think you can safely replace that selector with just keyword.operator:

>>> sublime.score_selector("source.c++ meta.function.c++ meta.block.c++ keyword.operator.arithmetic.c", "keyword.operator")
8192