Locally add prismjs
This commit is contained in:
parent
35af792c6a
commit
6aa044cf9b
701 changed files with 35787 additions and 0 deletions
46
node_modules/prismjs/components/prism-mel.js
generated
vendored
Normal file
46
node_modules/prismjs/components/prism-mel.js
generated
vendored
Normal file
|
@ -0,0 +1,46 @@
|
|||
Prism.languages.mel = {
|
||||
'comment': {
|
||||
pattern: /\/\/.*|\/\*[\s\S]*?\*\//,
|
||||
greedy: true
|
||||
},
|
||||
'code': {
|
||||
pattern: /`(?:\\.|[^\\`])*`/,
|
||||
greedy: true,
|
||||
alias: 'italic',
|
||||
inside: {
|
||||
'delimiter': {
|
||||
pattern: /^`|`$/,
|
||||
alias: 'punctuation'
|
||||
},
|
||||
'statement': {
|
||||
pattern: /[\s\S]+/,
|
||||
inside: null // see below
|
||||
}
|
||||
}
|
||||
},
|
||||
'string': {
|
||||
pattern: /"(?:\\.|[^\\"\r\n])*"/,
|
||||
greedy: true
|
||||
},
|
||||
'variable': /\$\w+/,
|
||||
'number': /\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,
|
||||
'flag': {
|
||||
pattern: /-[^\d\W]\w*/,
|
||||
alias: 'operator'
|
||||
},
|
||||
'keyword': /\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,
|
||||
'function': {
|
||||
pattern: /((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,
|
||||
lookbehind: true,
|
||||
greedy: true
|
||||
},
|
||||
|
||||
'tensor-punctuation': {
|
||||
pattern: /<<|>>/,
|
||||
alias: 'punctuation'
|
||||
},
|
||||
'operator': /\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,
|
||||
'punctuation': /[.,:;?\[\](){}]/
|
||||
};
|
||||
|
||||
Prism.languages.mel['code'].inside['statement'].inside = Prism.languages.mel;
|
Loading…
Add table
Add a link
Reference in a new issue