Skip to content

Boolean True/False independent highlight not supported for Python and JSON #180663

@eavelardev

Description

@eavelardev

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.77.3
  • OS Version: Ubuntu 22.04

Steps to Reproduce:

  1. Set constant.language.boolean.false and constant.language.boolean.true in your theme or json settings,
    Example:
{
    "scope": "constant.language.boolean.false",
    "settings": {
        "foreground": "#ff0054", // Red
    }
},
{
    "scope": "constant.language.boolean.true",
    "settings": {
        "foreground": "#41D046", // Green
    }
}
  1. Check highlight for true/false in .py and .js files
    boolean

To support this it seems constant.language.boolean.<true/false>.py patterns need to be defined in MagicPython.tmLanguage.json like in the js case. .json files also don't have this feature.

Metadata

Metadata

Assignees

Labels

grammarSyntax highlighting grammarupstream-issue-linkedThis is an upstream issue that has been reported upstream

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions