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