Blame view

bower_components/prism/components/prism-dart.js 690 Bytes
73bcce88   luigser   COMPONENTS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  Prism.languages.dart = Prism.languages.extend('clike', {
  	'string': [
  		/r?("""|''')[\s\S]*?\1/,
  		/r?("|')(\\?.)*?\1/
  	],
  	'keyword': [
  		/\b(?:async|sync|yield)\*/,
  		/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|default|deferred|do|dynamic|else|enum|export|external|extends|factory|final|finally|for|get|if|implements|import|in|library|new|null|operator|part|rethrow|return|set|static|super|switch|this|throw|try|typedef|var|void|while|with|yield)\b/
  	],
  	'operator': /\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/
  });
  
  Prism.languages.insertBefore('dart','function',{
  	'metadata': {
  		pattern: /@\w+/,
  		alias: 'symbol'
  	}
  });