Blame view

bower_components/prism/components/prism-fsharp.js 1.18 KB
73bcce88   luigser   COMPONENTS
1
2
3
4
5
6
7
8
9
10
11
  Prism.languages.fsharp = Prism.languages.extend('clike', {
  	'comment': [
  		{
  			pattern: /(^|[^\\])\(\*[\w\W]*?\*\)/,
  			lookbehind: true
  		},
  		{
  			pattern: /(^|[^\\:])\/\/.*/,
  			lookbehind: true
  		}
  	],
eb240478   Luigi Serra   public room cards...
12
13
  	'keyword': /\b(?:let|return|use|yield)(?:!\B|\b)|\b(abstract|and|as|assert|base|begin|class|default|delegate|do|done|downcast|downto|elif|else|end|exception|extern|false|finally|for|fun|function|global|if|in|inherit|inline|interface|internal|lazy|match|member|module|mutable|namespace|new|not|null|of|open|or|override|private|public|rec|select|static|struct|then|to|true|try|type|upcast|val|void|when|while|with|asr|land|lor|lsl|lsr|lxor|mod|sig|atomic|break|checked|component|const|constraint|constructor|continue|eager|event|external|fixed|functor|include|method|mixin|object|parallel|process|protected|pure|sealed|tailcall|trait|virtual|volatile)\b/,
  	'string': /(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|("|')(?:\\\1|\\?(?!\1)[\s\S])*\1)B?/,
73bcce88   luigser   COMPONENTS
14
15
16
  	'number': [
  		/\b-?0x[\da-fA-F]+(un|lf|LF)?\b/,
  		/\b-?0b[01]+(y|uy)?\b/,
eb240478   Luigi Serra   public room cards...
17
  		/\b-?(\d*\.?\d+|\d+\.)([fFmM]|[eE][+-]?\d+)?\b/,
73bcce88   luigser   COMPONENTS
18
19
  		/\b-?\d+(y|uy|s|us|l|u|ul|L|UL|I)?\b/
  	]
eb240478   Luigi Serra   public room cards...
20
21
22
  });
  Prism.languages.insertBefore('fsharp', 'keyword', {
  	'preprocessor': /^[^\r\n\S]*#.*/m
73bcce88   luigser   COMPONENTS
23
  });