Blame view

bower_components/prism/components/prism-clike.js 784 Bytes
73bcce88   luigser   COMPONENTS
1
2
3
4
5
6
7
8
9
10
11
  Prism.languages.clike = {
  	'comment': [
  		{
  			pattern: /(^|[^\\])\/\*[\w\W]*?\*\//,
  			lookbehind: true
  		},
  		{
  			pattern: /(^|[^\\:])\/\/.*/,
  			lookbehind: true
  		}
  	],
eb240478   Luigi Serra   public room cards...
12
  	'string': /(["'])(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
73bcce88   luigser   COMPONENTS
13
  	'class-name': {
eb240478   Luigi Serra   public room cards...
14
  		pattern: /((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[a-z0-9_\.\\]+/i,
73bcce88   luigser   COMPONENTS
15
16
17
18
19
20
21
22
  		lookbehind: true,
  		inside: {
  			punctuation: /(\.|\\)/
  		}
  	},
  	'keyword': /\b(if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,
  	'boolean': /\b(true|false)\b/,
  	'function': /[a-z0-9_]+(?=\()/i,
eb240478   Luigi Serra   public room cards...
23
24
  	'number': /\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)\b/i,
  	'operator': /--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,
73bcce88   luigser   COMPONENTS
25
26
  	'punctuation': /[{}[\];(),.:]/
  };