]> luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/tap.js
Initial commit.
[flow-web.git] / static / highlight / es / languages / tap.js
1 /*! `tap` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar = (function () {
3 'use strict';
4
5 /*
6 Language: Test Anything Protocol
7 Description: TAP, the Test Anything Protocol, is a simple text-based interface between testing modules in a test harness.
8 Requires: yaml.js
9 Author: Sergey Bronnikov <sergeyb@bronevichok.ru>
10 Website: https://testanything.org
11 */
12
13 function tap(hljs) {
14 return {
15 name: 'Test Anything Protocol',
16 case_insensitive: true,
17 contains: [
18 hljs.HASH_COMMENT_MODE,
19 // version of format and total amount of testcases
20 {
21 className: 'meta',
22 variants: [
23 { begin: '^TAP version (\\d+)$' },
24 { begin: '^1\\.\\.(\\d+)$' }
25 ]
26 },
27 // YAML block
28 {
29 begin: /---$/,
30 end: '\\.\\.\\.$',
31 subLanguage: 'yaml',
32 relevance: 0
33 },
34 // testcase number
35 {
36 className: 'number',
37 begin: ' (\\d+) '
38 },
39 // testcase status and description
40 {
41 className: 'symbol',
42 variants: [
43 { begin: '^ok' },
44 { begin: '^not ok' }
45 ]
46 }
47 ]
48 };
49 }
50
51 return tap;
52
53 })();
54 ;
55 export default hljsGrammar;