From 7a3df06eb573d36142bd1a8e03c5ce8752d300b3 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 24 May 2017 15:10:37 +0200 Subject: fix build issues and add typedoc --- node_modules/highlight.js/lib/languages/csp.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 node_modules/highlight.js/lib/languages/csp.js (limited to 'node_modules/highlight.js/lib/languages/csp.js') diff --git a/node_modules/highlight.js/lib/languages/csp.js b/node_modules/highlight.js/lib/languages/csp.js new file mode 100644 index 000000000..807f593c3 --- /dev/null +++ b/node_modules/highlight.js/lib/languages/csp.js @@ -0,0 +1,21 @@ +module.exports = function(hljs) { + return { + case_insensitive: false, + lexemes: '[a-zA-Z][a-zA-Z0-9_-]*', + keywords: { + keyword: 'base-uri child-src connect-src default-src font-src form-action' + + ' frame-ancestors frame-src img-src media-src object-src plugin-types' + + ' report-uri sandbox script-src style-src', + }, + contains: [ + { + className: 'string', + begin: "'", end: "'" + }, + { + className: 'attribute', + begin: '^Content', end: ':', excludeEnd: true, + }, + ] + }; +}; \ No newline at end of file -- cgit v1.2.3