mirror of
https://github.com/correl/melpa.git
synced 2024-12-18 19:21:32 +00:00
ed473afce2
Conflicts: html/style.css
49 lines
1.2 KiB
JavaScript
49 lines
1.2 KiB
JavaScript
/*
|
|
Language: Python profile
|
|
Description: Python profiler results
|
|
Author: Brian Beck <exogen@gmail.com>
|
|
*/
|
|
|
|
hljs.LANGUAGES.profile = {
|
|
defaultMode: {
|
|
contains: [
|
|
hljs.C_NUMBER_MODE,
|
|
{
|
|
className: 'builtin',
|
|
begin: '{', end: '}$',
|
|
excludeBegin: true, excludeEnd: true,
|
|
contains: [hljs.APOS_STRING_MODE, hljs.QUOTE_STRING_MODE],
|
|
relevance: 0
|
|
},
|
|
{
|
|
className: 'filename',
|
|
begin: '(/\w|[a-zA-Z_][\da-zA-Z_]+\\.[\da-zA-Z_]{1,3})', end: ':',
|
|
excludeEnd: true
|
|
},
|
|
{
|
|
className: 'header',
|
|
begin: '(ncalls|tottime|cumtime)', end: '$',
|
|
keywords: {'ncalls': 1, 'tottime': 10, 'cumtime': 10, 'filename': 1},
|
|
relevance: 10
|
|
},
|
|
{
|
|
className: 'summary',
|
|
begin: 'function calls', end: '$',
|
|
contains: [hljs.C_NUMBER_MODE],
|
|
relevance: 10
|
|
},
|
|
hljs.APOS_STRING_MODE,
|
|
hljs.QUOTE_STRING_MODE,
|
|
{
|
|
className: 'function',
|
|
begin: '\\(', end: '\\)$',
|
|
contains: [{
|
|
className: 'title',
|
|
begin: hljs.UNDERSCORE_IDENT_RE,
|
|
relevance: 0
|
|
}],
|
|
relevance: 0
|
|
}
|
|
]
|
|
}
|
|
};
|