primer / github-syntax-theme-generator

Uses a prettylights theme object to generate syntax themes for multiple platforms
MIT License
156 stars 33 forks source link

Colour keyword.operator differently from other keywords #59

Closed jayfoad closed 5 years ago

jayfoad commented 6 years ago

lib/themes/light.json treats all keywords the same, colouring them red:

    {
      "scope": "keyword",
      "settings": {
        "fontStyle": "",
        "foreground": "#d73a49"
      },
      "name": "Keyword"
    },

I'd like to suggest that it treats keyword.operator differently, preferably using a less vivid colour.

Reasons:

  1. TextMate documentation is fairly clear that keyword.operator includes symbolic operators like Java's + = << whereas most other keywords are words like Java's continue while return. These are rather different kinds of syntactic elements and it seems odd to me that they are lumped together in the same category for colouring purposes.

  2. In practice some language grammars (e.g. Java and JavaScript) make use of keyword.operator and some (e.g. C and Go) do not, which leads to inconsistent colouring across languages: in Java and Javascript, symbolic operators stand out in red, and in C and Go they do not.