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
44
dashboard-ui/bower_components/prism/components/prism-yaml.js
vendored
Normal file
44
dashboard-ui/bower_components/prism/components/prism-yaml.js
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
Prism.languages.yaml = {
|
||||
'scalar': {
|
||||
pattern: /([\-:]\s*(![^\s]+)?[ \t]*[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)[^\r\n]+(?:\3[^\r\n]+)*)/,
|
||||
lookbehind: true,
|
||||
alias: 'string'
|
||||
},
|
||||
'comment': /#.*/,
|
||||
'key': {
|
||||
pattern: /(\s*[:\-,[{\r\n?][ \t]*(![^\s]+)?[ \t]*)[^\r\n{[\]},#]+?(?=\s*:\s)/,
|
||||
lookbehind: true,
|
||||
alias: 'atrule'
|
||||
},
|
||||
'directive': {
|
||||
pattern: /(^[ \t]*)%.+/m,
|
||||
lookbehind: true,
|
||||
alias: 'important'
|
||||
},
|
||||
'datetime': {
|
||||
pattern: /([:\-,[{]\s*(![^\s]+)?[ \t]*)(\d{4}-\d\d?-\d\d?([tT]|[ \t]+)\d\d?:\d{2}:\d{2}(\.\d*)?[ \t]*(Z|[-+]\d\d?(:\d{2})?)?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(:\d{2}(\.\d*)?)?)(?=[ \t]*($|,|]|}))/m,
|
||||
lookbehind: true,
|
||||
alias: 'number'
|
||||
},
|
||||
'boolean': {
|
||||
pattern: /([:\-,[{]\s*(![^\s]+)?[ \t]*)(true|false)[ \t]*(?=$|,|]|})/im,
|
||||
lookbehind: true,
|
||||
alias: 'important'
|
||||
},
|
||||
'null': {
|
||||
pattern: /([:\-,[{]\s*(![^\s]+)?[ \t]*)(null|~)[ \t]*(?=$|,|]|})/im,
|
||||
lookbehind: true,
|
||||
alias: 'important'
|
||||
},
|
||||
'string': {
|
||||
pattern: /([:\-,[{]\s*(![^\s]+)?[ \t]*)("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')(?=[ \t]*($|,|]|}))/m,
|
||||
lookbehind: true
|
||||
},
|
||||
'number': {
|
||||
pattern: /([:\-,[{]\s*(![^\s]+)?[ \t]*)[+\-]?(0x[\da-f]+|0o[0-7]+|(\d+\.?\d*|\.?\d+)(e[\+\-]?\d+)?|\.inf|\.nan)[ \t]*(?=$|,|]|})/im,
|
||||
lookbehind: true
|
||||
},
|
||||
'tag': /![^\s]+/,
|
||||
'important': /[&*][\w]+/,
|
||||
'punctuation': /---|[:[\]{}\-,|>?]|\.\.\./
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue