Blame view

bower_components/prism/components/prism-sas.js 847 Bytes
73bcce88   luigser   COMPONENTS
1
2
  Prism.languages.sas = {
  	'datalines': {
eb240478   Luigi Serra   public room cards...
3
4
  		pattern: /^\s*(?:(?:data)?lines|cards);[\s\S]+?(?:\r?\n|\r);/im,
  		alias: 'string',
73bcce88   luigser   COMPONENTS
5
6
7
8
9
  		inside: {
  			'keyword': {
  				pattern: /^(\s*)(?:(?:data)?lines|cards)/i,
  				lookbehind: true
  			},
eb240478   Luigi Serra   public room cards...
10
  			'punctuation': /;/
73bcce88   luigser   COMPONENTS
11
12
13
14
15
16
17
18
19
20
21
  		}
  	},
  	'comment': [
  		{
  			pattern: /(^\s*|;\s*)\*.*;/m,
  			lookbehind: true
  		},
  		/\/\*[\s\S]+?\*\//
  	],
  	'datetime': {
  		// '1jan2013'd, '9:25:19pm't, '18jan2003:9:27:05am'dt
eb240478   Luigi Serra   public room cards...
22
  		pattern: /'[^']+'(?:dt?|t)\b/i,
73bcce88   luigser   COMPONENTS
23
24
25
26
27
28
  		alias: 'number'
  	},
  	'string': /(["'])(?:\1\1|(?!\1)[\s\S])*\1/,
  	'keyword': /\b(?:data|else|format|if|input|proc|run|then)\b/i,
  	// Decimal (1.2e23), hexadecimal (0c1x)
  	'number': /(?:\B-|\b)(?:[\da-f]+x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,
eb240478   Luigi Serra   public room cards...
29
  	'operator': /\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?|\b(?:eq|ne|gt|lt|ge|le|in|not)\b/i,
73bcce88   luigser   COMPONENTS
30
31
  	'punctuation': /[$%@.(){}\[\];,\\]/
  };