profile.js 782 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. Language: Python profile
  3. Description: Python profiler results
  4. Author: Brian Beck <[email protected]>
  5. */
  6. function(hljs) {
  7. return {
  8. contains: [
  9. hljs.C_NUMBER_MODE,
  10. {
  11. begin: '[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}', end: ':',
  12. excludeEnd: true
  13. },
  14. {
  15. begin: '(ncalls|tottime|cumtime)', end: '$',
  16. keywords: 'ncalls tottime|10 cumtime|10 filename',
  17. relevance: 10
  18. },
  19. {
  20. begin: 'function calls', end: '$',
  21. contains: [hljs.C_NUMBER_MODE],
  22. relevance: 10
  23. },
  24. hljs.APOS_STRING_MODE,
  25. hljs.QUOTE_STRING_MODE,
  26. {
  27. className: 'string',
  28. begin: '\\(', end: '\\)$',
  29. excludeBegin: true, excludeEnd: true,
  30. relevance: 0
  31. }
  32. ]
  33. };
  34. }