Blame view

bower_components/prism/components/prism-css-extras.js 397 Bytes
73bcce88   luigser   COMPONENTS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  Prism.languages.css.selector = {
  	pattern: /[^\{\}\s][^\{\}]*(?=\s*\{)/,
  	inside: {
  		'pseudo-element': /:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,
  		'pseudo-class': /:[-\w]+(?:\(.*\))?/,
  		'class': /\.[-:\.\w]+/,
  		'id': /#[-:\.\w]+/
  	}
  };
  
  Prism.languages.insertBefore('css', 'function', {
  	'hexcode': /#[\da-f]{3,6}/i,
  	'entity': /\\[\da-f]{1,8}/i,
  	'number': /[\d%\.]+/
  });