(YAML) Expand allowed characters in keys #4044
Labels
bug
good first issue
Should be easier for first time contributors
help welcome
Could use help from community
language
Describe the issue
👋 Hello hello from GitHub Docs! We use highlight.js and are very grateful for your maintenance.
https://docs.github.com/en/copilot/managing-github-copilot-in-your-organization/configuring-content-exclusions-for-github-copilot#example-of-repositories-and-paths-in-organization-settings
We have a little syntax highlighting problem with a few YAML keys.
You can see GitHub.com (Ruby) handling it a little better:
I believe the relevant code would be here:
highlight.js/src/languages/yaml.js
Lines 16 to 30 in 583cb33
For our purposes we would need
@
and*
supported, but I believe there's a wider range of supported characters for YAML keys.Which language seems to have the issue?
YAML
Are you using
highlight
orhighlightAuto
?highlight
Sample Code to Reproduce
See description above
Expected behavior
See description
Additional context
N/A
The text was updated successfully, but these errors were encountered: