gherkin.js 794 B

123456789101112131415161718192021222324252627282930313233343536
  1. module.exports = function (hljs) {
  2. return {
  3. aliases: ['feature'],
  4. keywords: 'Feature Background Ability Business\ Need Scenario Scenarios Scenario\ Outline Scenario\ Template Examples Given And Then But When',
  5. contains: [
  6. {
  7. className: 'symbol',
  8. begin: '\\*',
  9. relevance: 0
  10. },
  11. {
  12. className: 'meta',
  13. begin: '@[^@\\s]+'
  14. },
  15. {
  16. begin: '\\|', end: '\\|\\w*$',
  17. contains: [
  18. {
  19. className: 'string',
  20. begin: '[^|]+'
  21. }
  22. ]
  23. },
  24. {
  25. className: 'variable',
  26. begin: '<', end: '>'
  27. },
  28. hljs.HASH_COMMENT_MODE,
  29. {
  30. className: 'string',
  31. begin: '"""', end: '"""'
  32. },
  33. hljs.QUOTE_STRING_MODE
  34. ]
  35. };
  36. };