gherkin.json 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. {
  2. "aliases": [
  3. "feature"
  4. ],
  5. "keywords": "Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",
  6. "contains": [
  7. {
  8. "className": "symbol",
  9. "begin": "\\*",
  10. "relevance": 0
  11. },
  12. {
  13. "className": "meta",
  14. "begin": "@[^@\\s]+"
  15. },
  16. {
  17. "begin": "\\|",
  18. "end": "\\|\\w*$",
  19. "contains": [
  20. {
  21. "className": "string",
  22. "begin": "[^|]+"
  23. }
  24. ]
  25. },
  26. {
  27. "className": "variable",
  28. "begin": "<",
  29. "end": ">"
  30. },
  31. {
  32. "className": "comment",
  33. "begin": "#",
  34. "end": "$",
  35. "contains": [
  36. {
  37. "begin": "\\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\\b"
  38. },
  39. {
  40. "className": "doctag",
  41. "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
  42. "relevance": 0
  43. }
  44. ]
  45. },
  46. {
  47. "className": "string",
  48. "begin": "\"\"\"",
  49. "end": "\"\"\""
  50. },
  51. {
  52. "className": "string",
  53. "begin": "\"",
  54. "end": "\"",
  55. "illegal": "\\n",
  56. "contains": [
  57. {
  58. "begin": "\\\\[\\s\\S]",
  59. "relevance": 0
  60. }
  61. ]
  62. }
  63. ]
  64. }