Blame view

bower_components/prism/components/prism-yaml.js 1.3 KB
73bcce88   luigser   COMPONENTS
1
2
  Prism.languages.yaml = {
  	'scalar': {
eb240478   Luigi Serra   public room cards...
3
  		pattern: /([\-:]\s*(![^\s]+)?[ \t]*[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)[^\r\n]+(?:\3[^\r\n]+)*)/,
73bcce88   luigser   COMPONENTS
4
5
6
  		lookbehind: true,
  		alias: 'string'
  	},
eb240478   Luigi Serra   public room cards...
7
  	'comment': /#.*/,
73bcce88   luigser   COMPONENTS
8
  	'key': {
eb240478   Luigi Serra   public room cards...
9
  		pattern: /(\s*[:\-,[{\r\n?][ \t]*(![^\s]+)?[ \t]*)[^\r\n{[\]},#]+?(?=\s*:\s)/,
73bcce88   luigser   COMPONENTS
10
11
12
13
  		lookbehind: true,
  		alias: 'atrule'
  	},
  	'directive': {
eb240478   Luigi Serra   public room cards...
14
  		pattern: /(^[ \t]*)%.+/m,
73bcce88   luigser   COMPONENTS
15
16
17
18
  		lookbehind: true,
  		alias: 'important'
  	},
  	'datetime': {
eb240478   Luigi Serra   public room cards...
19
  		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,
73bcce88   luigser   COMPONENTS
20
21
22
23
  		lookbehind: true,
  		alias: 'number'
  	},
  	'boolean': {
eb240478   Luigi Serra   public room cards...
24
  		pattern: /([:\-,[{]\s*(![^\s]+)?[ \t]*)(true|false)[ \t]*(?=$|,|]|})/im,
73bcce88   luigser   COMPONENTS
25
26
27
28
  		lookbehind: true,
  		alias: 'important'
  	},
  	'null': {
eb240478   Luigi Serra   public room cards...
29
  		pattern: /([:\-,[{]\s*(![^\s]+)?[ \t]*)(null|~)[ \t]*(?=$|,|]|})/im,
73bcce88   luigser   COMPONENTS
30
31
32
33
  		lookbehind: true,
  		alias: 'important'
  	},
  	'string': {
eb240478   Luigi Serra   public room cards...
34
  		pattern: /([:\-,[{]\s*(![^\s]+)?[ \t]*)("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')(?=[ \t]*($|,|]|}))/m,
73bcce88   luigser   COMPONENTS
35
36
37
  		lookbehind: true
  	},
  	'number': {
eb240478   Luigi Serra   public room cards...
38
  		pattern: /([:\-,[{]\s*(![^\s]+)?[ \t]*)[+\-]?(0x[\da-f]+|0o[0-7]+|(\d+\.?\d*|\.?\d+)(e[\+\-]?\d+)?|\.inf|\.nan)[ \t]*(?=$|,|]|})/im,
73bcce88   luigser   COMPONENTS
39
40
41
42
  		lookbehind: true
  	},
  	'tag': /![^\s]+/,
  	'important': /[&*][\w]+/,
eb240478   Luigi Serra   public room cards...
43
  	'punctuation': /---|[:[\]{}\-,|>?]|\.\.\./
73bcce88   luigser   COMPONENTS
44
  };