Skip to content

Keys and string values in JSON listings are not highlighted differently #4635

@JKRhb

Description

@JKRhb

Description

I am not sure whether this is the right place to report this potential bug, but when using JSON listings, I've noticed that the syntax highlighting in the rendered result is a bit off as the keys and the string-based values at the same level always have the same color, which can have a negative impact on the readability of the listing. This is even the case with custom .tmTheme files and adjusted color schemes.

The issue (which is especially relevant in the case of larger JSON documents) becomes apparent if you compare the following listing with a rendered Typst-based version of it:

{
  "foo": "bar"
}

image

Operating system

Web app

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or requesttextRelated to the text category, which is all about text handling, shaping, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions