]> luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/subunit.js
Initial commit.
[flow-web.git] / static / highlight / es / languages / subunit.js
1 /*! `subunit` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar = (function () {
3 'use strict';
4
5 /*
6 Language: SubUnit
7 Author: Sergey Bronnikov <sergeyb@bronevichok.ru>
8 Website: https://pypi.org/project/python-subunit/
9 Category: protocols
10 */
11
12 function subunit(hljs) {
13 const DETAILS = {
14 className: 'string',
15 begin: '\\[\n(multipart)?',
16 end: '\\]\n'
17 };
18 const TIME = {
19 className: 'string',
20 begin: '\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}\.\\d+Z'
21 };
22 const PROGRESSVALUE = {
23 className: 'string',
24 begin: '(\\+|-)\\d+'
25 };
26 const KEYWORDS = {
27 className: 'keyword',
28 relevance: 10,
29 variants: [
30 { begin: '^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?' },
31 { begin: '^progress(:?)(\\s+)?(pop|push)?' },
32 { begin: '^tags:' },
33 { begin: '^time:' }
34 ]
35 };
36 return {
37 name: 'SubUnit',
38 case_insensitive: true,
39 contains: [
40 DETAILS,
41 TIME,
42 PROGRESSVALUE,
43 KEYWORDS
44 ]
45 };
46 }
47
48 return subunit;
49
50 })();
51 ;
52 export default hljsGrammar;