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,

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.
Environment
Description
Math is not always correctly highlighted in keyvals. For example,
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#cin the#keyvals: ... #endkeyvalsstructure.