Blame view

bower_components/prism/components/prism-go.js 715 Bytes
73bcce88   luigser   COMPONENTS
1
2
3
4
  Prism.languages.go = Prism.languages.extend('clike', {
  	'keyword': /\b(break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,
  	'builtin': /\b(bool|byte|complex(64|128)|error|float(32|64)|rune|string|u?int(8|16|32|64|)|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(ln)?|real|recover)\b/,
  	'boolean': /\b(_|iota|nil|true|false)\b/,
eb240478   Luigi Serra   public room cards...
5
  	'operator': /[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,
73bcce88   luigser   COMPONENTS
6
7
8
9
  	'number': /\b(-?(0x[a-f\d]+|(\d+\.?\d*|\.\d+)(e[-+]?\d+)?)i?)\b/i,
  	'string': /("|'|`)(\\?.|\r|\n)*?\1/
  });
  delete Prism.languages.go['class-name'];