Locally add prismjs
This commit is contained in:
parent
35af792c6a
commit
6aa044cf9b
701 changed files with 35787 additions and 0 deletions
29
node_modules/prismjs/components/prism-bbcode.js
generated
vendored
Normal file
29
node_modules/prismjs/components/prism-bbcode.js
generated
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
Prism.languages.bbcode = {
|
||||
'tag': {
|
||||
pattern: /\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,
|
||||
inside: {
|
||||
'tag': {
|
||||
pattern: /^\[\/?[^\s=\]]+/,
|
||||
inside: {
|
||||
'punctuation': /^\[\/?/
|
||||
}
|
||||
},
|
||||
'attr-value': {
|
||||
pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,
|
||||
inside: {
|
||||
'punctuation': [
|
||||
/^=/,
|
||||
{
|
||||
pattern: /^(\s*)["']|["']$/,
|
||||
lookbehind: true
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
'punctuation': /\]/,
|
||||
'attr-name': /[^\s=\]]+/
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Prism.languages.shortcode = Prism.languages.bbcode;
|
Loading…
Add table
Add a link
Reference in a new issue