vscode-opa icon indicating copy to clipboard operation
vscode-opa copied to clipboard

Consider YAML syntax highlighting in metadata comments

Open anderseknert opened this issue 8 months ago • 0 comments

While they are comments, they're also interpreted as YAML, and all issues around editing YAML — like adding an extra whitespace somewhere, and have that change the semantics of parsing — still apply. I wonder if it would help to have metadata blocks recognized (and highlighted) as YAML. It would help make them stand out from regular comments, but would also mean that VS Code could do YAML-specific checks on them.

I'm not sure about this, as there's also a risk of metadata appearing to be too prominent in policies. But a POC to test this would be helpful for making an informed decision.

anderseknert avatar Jun 21 '24 19:06 anderseknert