From 187ddf2441a5fe7caca711ff1e6170ddf17fb329 Mon Sep 17 00:00:00 2001 From: ElijahPepe Date: Tue, 15 Jun 2021 21:11:13 -0700 Subject: [PATCH 1/3] Add additional keywords for CSP. worker-src, unsafe-hashes, trusted-types, and manifest-src --- src/languages/csp.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/languages/csp.js b/src/languages/csp.js index 54adeb67c1..bde26848fc 100644 --- a/src/languages/csp.js +++ b/src/languages/csp.js @@ -19,13 +19,17 @@ export default function(hljs) { "frame-ancestors", "frame-src", "img-src", + "manifest-src", "media-src", "object-src", "plugin-types", "report-uri", "sandbox", "script-src", - "style-src" + "style-src", + "trusted-types", + "unsafe-hashes", + "worker-src" ]; return { name: 'CSP', From df6cb9550b1f96df76a63c229c37d44af5586196 Mon Sep 17 00:00:00 2001 From: ElijahPepe Date: Tue, 15 Jun 2021 22:04:47 -0700 Subject: [PATCH 2/3] Add changelog entry. --- CHANGES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.md b/CHANGES.md index 33e360ba9e..2332dcd4fa 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,6 +2,7 @@ Grammars: +- add additional keywords to csp.js (#3244) [Elijah Conners][] - fix(markdown) Images with empty alt or links with empty text (#3233) [Josh Goebel][] - enh(powershell) added `pwsh` alias (#3236) [tebeco][] - fix(r) fix bug highlighting examples in doc comments [Konrad Rudolph][] From 1e98a1646acbc7cee81bb5d64952ddbff2646f32 Mon Sep 17 00:00:00 2001 From: Elijah Conners Date: Wed, 16 Jun 2021 08:51:15 -0700 Subject: [PATCH 3/3] Add GitHub link. --- CHANGES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.md b/CHANGES.md index 2332dcd4fa..afed41aab0 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -15,6 +15,7 @@ Grammars: [Stel Abrego]: https://github.com/stelcodes [Josh Goebel]: https://github.com/joshgoebel [Antoine Lambert]: https://github.com/anlambert +[Elijah Conners]: https://github.com/elijahepepe [Angelika Tyborska]: https://github.com/angelikatyborska [Konrad Rudolph]: https://github.com/klmr [tebeco]: https://github.com/tebeco