Skip to content

JS: Added properties#3099

Merged
RunDevelopment merged 3 commits intoPrismJS:masterfrom
RunDevelopment:issue2336
Oct 10, 2021
Merged

JS: Added properties#3099
RunDevelopment merged 3 commits intoPrismJS:masterfrom
RunDevelopment:issue2336

Conversation

@RunDevelopment
Copy link
Copy Markdown
Member

This PR adds properties to JS.

image

Property highlighting is split in string properties (e.g. { "foo": null }) and literal properties (e.g. { foo: null }). This distinction is important because we cannot support literal properties in more complex languages like TS. These languages are just too complex. However, we can support string properties in TS


Fix resolves #2336.
Closes #2004.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Sep 30, 2021

JS File Size Changes (gzipped)

A total of 4 files have changed, with a combined diff of +144 B (+5.3%).

Details
file master pull size diff % diff
components/prism-actionscript.min.js 478 B 508 B +30 B +6.3%
components/prism-javascript.min.js 1.5 KB 1.57 KB +76 B +5.1%
components/prism-tsx.min.js 192 B 212 B +20 B +10.4%
components/prism-typescript.min.js 558 B 576 B +18 B +3.2%

Generated by 🚫 dangerJS against 8db638c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Javascript object keys highlighting

1 participant