You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
387 B
JavaScript

// TODO:
// - Support for outline parameters
// - Support for tables
Prism.languages.gherkin = {
'comment': {
pattern: /(^|[^\\])(\/\*[\w\W]*?\*\/|((#)|(\/\/)).*?(\r?\n|$))/g,
lookbehind: true
},
'string': /("|')(\\?.)*?\1/g,
'atrule': /\b(And|Given|When|Then|In order to|As an|I want to|As a)\b/g,
'keyword': /\b(Scenario Outline|Scenario|Feature|Background|Story)\b/g
};