Locally add prismjs
This commit is contained in:
parent
35af792c6a
commit
6aa044cf9b
701 changed files with 35787 additions and 0 deletions
15
node_modules/prismjs/components/prism-processing.js
generated
vendored
Normal file
15
node_modules/prismjs/components/prism-processing.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
Prism.languages.processing = Prism.languages.extend('clike', {
|
||||
'keyword': /\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,
|
||||
// Spaces are allowed between function name and parenthesis
|
||||
'function': /\b\w+(?=\s*\()/,
|
||||
'operator': /<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/
|
||||
});
|
||||
|
||||
Prism.languages.insertBefore('processing', 'number', {
|
||||
// Special case: XML is a type
|
||||
'constant': /\b(?!XML\b)[A-Z][A-Z\d_]+\b/,
|
||||
'type': {
|
||||
pattern: /\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,
|
||||
alias: 'class-name'
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue