UNPKG

vue-files-preview-inno

Version:

A tool for previewing files such as doc, excel, pdf, image, markdown, txt, audio, and video and so on.

1 lines 1.86 kB
{"version":3,"file":"csp.mjs","sources":["../../../../../../node_modules/highlight.js/lib/languages/csp.js"],"sourcesContent":["/*\nLanguage: CSP\nDescription: Content Security Policy definition highlighting\nAuthor: Taras <oxdef@oxdef.info>\nWebsite: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP\nCategory: web\n\nvim: ts=2 sw=2 st=2\n*/\n\n/** @type LanguageFn */\nfunction csp(hljs) {\n const KEYWORDS = [\n \"base-uri\",\n \"child-src\",\n \"connect-src\",\n \"default-src\",\n \"font-src\",\n \"form-action\",\n \"frame-ancestors\",\n \"frame-src\",\n \"img-src\",\n \"manifest-src\",\n \"media-src\",\n \"object-src\",\n \"plugin-types\",\n \"report-uri\",\n \"sandbox\",\n \"script-src\",\n \"style-src\",\n \"trusted-types\",\n \"unsafe-hashes\",\n \"worker-src\"\n ];\n return {\n name: 'CSP',\n case_insensitive: false,\n keywords: {\n $pattern: '[a-zA-Z][a-zA-Z0-9_-]*',\n keyword: KEYWORDS\n },\n contains: [\n {\n className: 'string',\n begin: \"'\",\n end: \"'\"\n },\n {\n className: 'attribute',\n begin: '^Content',\n end: ':',\n excludeEnd: true\n }\n ]\n };\n}\n\nmodule.exports = csp;\n"],"names":["csp","hljs","csp_1"],"mappings":";;;;AAWA,WAASA,EAAIC,GAAM;AAuBjB,WAAO;AAAA,MACL,MAAM;AAAA,MACN,kBAAkB;AAAA,MAClB,UAAU;AAAA,QACR,UAAU;AAAA,QACV,SA3Ba;AAAA,UACf;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QACJ;AAAA;MAQI,UAAU;AAAA,QACR;AAAA,UACE,WAAW;AAAA,UACX,OAAO;AAAA,UACP,KAAK;AAAA;QAEP;AAAA,UACE,WAAW;AAAA,UACX,OAAO;AAAA,UACP,KAAK;AAAA,UACL,YAAY;AAAA;;IAGpB;AAAA,EACA;AAEA,SAAAC,IAAiBF;;","x_google_ignoreList":[0]}