Description:
The current Cursor Dark theme renders YAML files with inconsistent and incorrect syntax highlighting. This makes it difficult to visually parse the structure and content of YAML files. Ideally, keywords should have distinct highlighting, and values (especially strings) should also have different highlighting from keywords.
To Reproduce:
Open a .yml file in Cursor. The attached screenshot shows a bitbucket-pipelines.yml file.
Observe the syntax highlighting of the keywords and values.
Operating System and Cursor Version:
macOS Ventura 13.5.1, Cursor 0.48.8
Impact:
The issue hinders readability and makes working with YAML files in Cursor more difficult, but it doesnât completely prevent usage. Improving the YAML syntax highlighting would significantly enhance the editing experience.
I donât think this has relation to any extension. Itâs a syntax highlighting issue that doesnât happen with other themes, even without the extension.
Nevertheless, I installed the extension and the issue remains the same.
Ah youâre right, I tried disabling the YAML extension and switching to âCursor Darkâ theme and was able to reproduce your problem.
I switched back to my preferred theme and it highlights correctly. Itâs a dark theme called Slime if you want to try it: Slime Theme - Visual Studio Marketplace