08-27-周三_17-09-29
This commit is contained in:
36
node_modules/highlight.js/lib/languages/gherkin.js
generated
vendored
Normal file
36
node_modules/highlight.js/lib/languages/gherkin.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
module.exports = function (hljs) {
|
||||
return {
|
||||
aliases: ['feature'],
|
||||
keywords: 'Feature Background Ability Business\ Need Scenario Scenarios Scenario\ Outline Scenario\ Template Examples Given And Then But When',
|
||||
contains: [
|
||||
{
|
||||
className: 'symbol',
|
||||
begin: '\\*',
|
||||
relevance: 0
|
||||
},
|
||||
{
|
||||
className: 'meta',
|
||||
begin: '@[^@\\s]+'
|
||||
},
|
||||
{
|
||||
begin: '\\|', end: '\\|\\w*$',
|
||||
contains: [
|
||||
{
|
||||
className: 'string',
|
||||
begin: '[^|]+'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
className: 'variable',
|
||||
begin: '<', end: '>'
|
||||
},
|
||||
hljs.HASH_COMMENT_MODE,
|
||||
{
|
||||
className: 'string',
|
||||
begin: '"""', end: '"""'
|
||||
},
|
||||
hljs.QUOTE_STRING_MODE
|
||||
]
|
||||
};
|
||||
};
|
Reference in New Issue
Block a user