Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(properties) fix incorrect handling of non-alphanumeric keys #3102

Merged
merged 3 commits into from
Apr 4, 2021

Conversation

egor-rogov
Copy link
Collaborator

Fixes #3064

Changes

Removed the special case for non-alphanumeric characters keys, as there are no restrictions for the set of character, and no character has a special meaning (excluding separators of course).

Checklist

  • Added markup tests, or they don't apply here because there is nothing new in markup
  • Updated the changelog at CHANGES.md

egor-rogov and others added 3 commits April 4, 2021 01:29
Properties is leaving :common in v11 and honestly there are no narrow
rules here to give us real relevance. Since we are now widening the key
rule even further this problem would become even worse.

Therefore, we will disable auto-detect.
@joshgoebel joshgoebel merged commit 396e6db into highlightjs:main Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(properties) Keys with . in them are highlighted differently
2 participants