1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-02-15 11:20:35 +01:00
2021-08-02 06:42:23 +02:00

5 lines
533 B
JavaScript

hljs.registerLanguage("csp",(()=>{"use strict";return s=>({name:"CSP",
case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",
keyword:["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"]
},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",
begin:"^Content",end:":",excludeEnd:!0}]})})());