profile.js 692 B

1234567891011121314151617181920212223242526272829
  1. module.exports = function(hljs) {
  2. return {
  3. contains: [
  4. hljs.C_NUMBER_MODE,
  5. {
  6. begin: '[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}', end: ':',
  7. excludeEnd: true
  8. },
  9. {
  10. begin: '(ncalls|tottime|cumtime)', end: '$',
  11. keywords: 'ncalls tottime|10 cumtime|10 filename',
  12. relevance: 10
  13. },
  14. {
  15. begin: 'function calls', end: '$',
  16. contains: [hljs.C_NUMBER_MODE],
  17. relevance: 10
  18. },
  19. hljs.APOS_STRING_MODE,
  20. hljs.QUOTE_STRING_MODE,
  21. {
  22. className: 'string',
  23. begin: '\\(', end: '\\)$',
  24. excludeBegin: true, excludeEnd: true,
  25. relevance: 0
  26. }
  27. ]
  28. };
  29. };