Initial commit.
Signed-off-by: Andreas Widen <aw@luflow.net>
This commit is contained in:
commit
a4a5c7daa5
1389 changed files with 241399 additions and 0 deletions
55
static/highlight/es/languages/tap.js
Normal file
55
static/highlight/es/languages/tap.js
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
/*! `tap` grammar compiled for Highlight.js 11.11.1 */
|
||||
var hljsGrammar = (function () {
|
||||
'use strict';
|
||||
|
||||
/*
|
||||
Language: Test Anything Protocol
|
||||
Description: TAP, the Test Anything Protocol, is a simple text-based interface between testing modules in a test harness.
|
||||
Requires: yaml.js
|
||||
Author: Sergey Bronnikov <sergeyb@bronevichok.ru>
|
||||
Website: https://testanything.org
|
||||
*/
|
||||
|
||||
function tap(hljs) {
|
||||
return {
|
||||
name: 'Test Anything Protocol',
|
||||
case_insensitive: true,
|
||||
contains: [
|
||||
hljs.HASH_COMMENT_MODE,
|
||||
// version of format and total amount of testcases
|
||||
{
|
||||
className: 'meta',
|
||||
variants: [
|
||||
{ begin: '^TAP version (\\d+)$' },
|
||||
{ begin: '^1\\.\\.(\\d+)$' }
|
||||
]
|
||||
},
|
||||
// YAML block
|
||||
{
|
||||
begin: /---$/,
|
||||
end: '\\.\\.\\.$',
|
||||
subLanguage: 'yaml',
|
||||
relevance: 0
|
||||
},
|
||||
// testcase number
|
||||
{
|
||||
className: 'number',
|
||||
begin: ' (\\d+) '
|
||||
},
|
||||
// testcase status and description
|
||||
{
|
||||
className: 'symbol',
|
||||
variants: [
|
||||
{ begin: '^ok' },
|
||||
{ begin: '^not ok' }
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
return tap;
|
||||
|
||||
})();
|
||||
;
|
||||
export default hljsGrammar;
|
||||
Loading…
Reference in a new issue