Skip to content

problem with math highlighting in keyvals #2138

@mbertucci47

Description

@mbertucci47

Environment

  • TeXstudio: 4.2.2
  • Qt: 6.2.3
  • OS: Windows 10
  • TeX distribution: miktex

Description

Math is not always correctly highlighted in keyvals. For example,

Screenshot 2022-02-28 135531

The dollar signs are not highlighted and it doesn't recognize the content as in a math environment. Braces fix the highlighting but the first should still be valid. This behavior occurs wherever you have key=%<value%> in a cwl, and regardless of whether the command was specified with a #c in the #keyvals: ... #endkeyvals structure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions