source: node_modules/prismjs/components/prism-bbcode.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 609 bytes
Line 
1Prism.languages.bbcode = {
2 'tag': {
3 pattern: /\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,
4 inside: {
5 'tag': {
6 pattern: /^\[\/?[^\s=\]]+/,
7 inside: {
8 'punctuation': /^\[\/?/
9 }
10 },
11 'attr-value': {
12 pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,
13 inside: {
14 'punctuation': [
15 /^=/,
16 {
17 pattern: /^(\s*)["']|["']$/,
18 lookbehind: true
19 }
20 ]
21 }
22 },
23 'punctuation': /\]/,
24 'attr-name': /[^\s=\]]+/
25 }
26 }
27};
28
29Prism.languages.shortcode = Prism.languages.bbcode;
Note: See TracBrowser for help on using the repository browser.