]> luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/profile.js
Initial commit.
[flow-web.git] / static / highlight / es / languages / profile.js
1 /*! `profile` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar = (function () {
3 'use strict';
4
5 /*
6 Language: Python profiler
7 Description: Python profiler results
8 Author: Brian Beck <exogen@gmail.com>
9 */
10
11 function profile(hljs) {
12 return {
13 name: 'Python profiler',
14 contains: [
15 hljs.C_NUMBER_MODE,
16 {
17 begin: '[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}',
18 end: ':',
19 excludeEnd: true
20 },
21 {
22 begin: '(ncalls|tottime|cumtime)',
23 end: '$',
24 keywords: 'ncalls tottime|10 cumtime|10 filename',
25 relevance: 10
26 },
27 {
28 begin: 'function calls',
29 end: '$',
30 contains: [ hljs.C_NUMBER_MODE ],
31 relevance: 10
32 },
33 hljs.APOS_STRING_MODE,
34 hljs.QUOTE_STRING_MODE,
35 {
36 className: 'string',
37 begin: '\\(',
38 end: '\\)$',
39 excludeBegin: true,
40 excludeEnd: true,
41 relevance: 0
42 }
43 ]
44 };
45 }
46
47 return profile;
48
49 })();
50 ;
51 export default hljsGrammar;