1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/highlight.js/lib/languages/csp.js

21 lines
545 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
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,
},
]
};
};