Blame view

bower_components/prism/components/prism-r.js 619 Bytes
73bcce88   luigser   COMPONENTS
1
  Prism.languages.r = {
eb240478   Luigi Serra   public room cards...
2
  	'comment': /#.*/,
73bcce88   luigser   COMPONENTS
3
4
5
6
  	'string': /(['"])(?:\\?.)*?\1/,
  	'percent-operator': {
  		// Includes user-defined operators
  		// and %%, %*%, %/%, %in%, %o%, %x%
eb240478   Luigi Serra   public room cards...
7
  		pattern: /%[^%\s]*%/,
73bcce88   luigser   COMPONENTS
8
9
10
11
12
13
  		alias: 'operator'
  	},
  	'boolean': /\b(?:TRUE|FALSE)\b/,
  	'ellipsis': /\.\.(?:\.|\d+)/,
  	'number': [
  		/\b(?:NaN|Inf)\b/,
eb240478   Luigi Serra   public room cards...
14
  		/\b(?:0x[\dA-Fa-f]+(?:\.\d*)?|\d*\.?\d+)(?:[EePp][+-]?\d+)?[iL]?\b/
73bcce88   luigser   COMPONENTS
15
16
  	],
  	'keyword': /\b(?:if|else|repeat|while|function|for|in|next|break|NULL|NA|NA_integer_|NA_real_|NA_complex_|NA_character_)\b/,
eb240478   Luigi Serra   public room cards...
17
  	'operator': /->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,
73bcce88   luigser   COMPONENTS
18
19
  	'punctuation': /[(){}\[\],;]/
  };