Sha256: beb7425c107b4a0d3a851243151bc79a35ef98df527168c3accea59215385a14

Contents?: true

Size: 388 Bytes

Versions: 7

Compression:

Stored size: 388 Bytes

Contents

// 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,
};

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hyhyhy-1.0.0 lib/hyhyhy/structure/_includes/prism/components/prism-gherkin.js
hyhyhy-0.0.9 lib/hyhyhy/structure/_includes/prism/components/prism-gherkin.js
hyhyhy-0.0.8 lib/hyhyhy/structure/_includes/prism/components/prism-gherkin.js
hyhyhy-0.0.7 lib/hyhyhy/structure/_includes/prism/components/prism-gherkin.js
hyhyhy-0.0.6 lib/hyhyhy/structure/_includes/prism/components/prism-gherkin.js
hyhyhy-0.0.5 lib/hyhyhy/structure/_includes/prism/components/prism-gherkin.js
hyhyhy-0.0.4 lib/hyhyhy/structure/_includes/prism/components/prism-gherkin.js