gherkin top-level property

Mode gherkin
final

Syntax highlighting mode for gherkin.

Implementation

final gherkin = Mode(
  refs: {},
  aliases: ["feature"],
  keywords: "Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",
  contains: [
    Mode(className: "symbol", begin: "\\*", relevance: 0),
    Mode(className: "meta", begin: "@[^@\\s]+"),
    Mode(
      begin: "\\|",
      end: "\\|\\w*\$",
      contains: [Mode(className: "string", begin: "[^|]+")],
    ),
    Mode(className: "variable", begin: "<", end: ">"),
    hashCommentMode,
    Mode(className: "string", begin: "\"\"\"", end: "\"\"\""),
    quoteStringMode,
  ],
);