mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
2a4b879c21
commit
63664e6c1c
1155 changed files with 62261 additions and 84 deletions
18
dashboard-ui/bower_components/prism/components/prism-processing.js
vendored
Normal file
18
dashboard-ui/bower_components/prism/components/prism-processing.js
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
Prism.languages.processing = Prism.languages.extend('clike', {
|
||||
'keyword': /\b(?:break|catch|case|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,
|
||||
'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|XML|[A-Z][A-Za-z\d_]*)\b/,
|
||||
alias: 'variable'
|
||||
}
|
||||
});
|
||||
|
||||
// Spaces are allowed between function name and parenthesis
|
||||
Prism.languages.processing['function'].pattern = /[a-z0-9_]+(?=\s*\()/i;
|
||||
|
||||
// Class-names is not styled by default
|
||||
Prism.languages.processing['class-name'].alias = 'variable';
|
Loading…
Add table
Add a link
Reference in a new issue