- Add new libraries: ui-accessibility, ui-animations, ui-backgrounds, ui-code-display, ui-data-utils, ui-font-manager, hcl-studio - Add extensive layout components: gallery-grid, infinite-scroll-container, kanban-board, masonry, split-view, sticky-layout - Add comprehensive demo components for all new features - Update project configuration and dependencies - Expand component exports and routing structure - Add UI landing pages planning document 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
41 lines
781 B
JavaScript
41 lines
781 B
JavaScript
(function (Prism) {
|
|
|
|
/**
|
|
* If the given language is present, it will insert the given doc comment grammar token into it.
|
|
*
|
|
* @param {string} lang
|
|
* @param {any} docComment
|
|
*/
|
|
function insertDocComment(lang, docComment) {
|
|
if (Prism.languages[lang]) {
|
|
Prism.languages.insertBefore(lang, 'comment', {
|
|
'doc-comment': docComment
|
|
});
|
|
}
|
|
}
|
|
|
|
var tag = Prism.languages.markup.tag;
|
|
|
|
var slashDocComment = {
|
|
pattern: /\/\/\/.*/,
|
|
greedy: true,
|
|
alias: 'comment',
|
|
inside: {
|
|
'tag': tag
|
|
}
|
|
};
|
|
var tickDocComment = {
|
|
pattern: /'''.*/,
|
|
greedy: true,
|
|
alias: 'comment',
|
|
inside: {
|
|
'tag': tag
|
|
}
|
|
};
|
|
|
|
insertDocComment('csharp', slashDocComment);
|
|
insertDocComment('fsharp', slashDocComment);
|
|
insertDocComment('vbnet', tickDocComment);
|
|
|
|
}(Prism));
|