main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
982 bytes
|
Line | |
---|
1 | /*
|
---|
2 | Language: SubUnit
|
---|
3 | Author: Sergey Bronnikov <sergeyb@bronevichok.ru>
|
---|
4 | Website: https://pypi.org/project/python-subunit/
|
---|
5 | */
|
---|
6 |
|
---|
7 | function subunit(hljs) {
|
---|
8 | const DETAILS = {
|
---|
9 | className: 'string',
|
---|
10 | begin: '\\[\n(multipart)?',
|
---|
11 | end: '\\]\n'
|
---|
12 | };
|
---|
13 | const TIME = {
|
---|
14 | className: 'string',
|
---|
15 | begin: '\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}\.\\d+Z'
|
---|
16 | };
|
---|
17 | const PROGRESSVALUE = {
|
---|
18 | className: 'string',
|
---|
19 | begin: '(\\+|-)\\d+'
|
---|
20 | };
|
---|
21 | const KEYWORDS = {
|
---|
22 | className: 'keyword',
|
---|
23 | relevance: 10,
|
---|
24 | variants: [
|
---|
25 | {
|
---|
26 | begin: '^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?'
|
---|
27 | },
|
---|
28 | {
|
---|
29 | begin: '^progress(:?)(\\s+)?(pop|push)?'
|
---|
30 | },
|
---|
31 | {
|
---|
32 | begin: '^tags:'
|
---|
33 | },
|
---|
34 | {
|
---|
35 | begin: '^time:'
|
---|
36 | }
|
---|
37 | ]
|
---|
38 | };
|
---|
39 | return {
|
---|
40 | name: 'SubUnit',
|
---|
41 | case_insensitive: true,
|
---|
42 | contains: [
|
---|
43 | DETAILS,
|
---|
44 | TIME,
|
---|
45 | PROGRESSVALUE,
|
---|
46 | KEYWORDS
|
---|
47 | ]
|
---|
48 | };
|
---|
49 | }
|
---|
50 |
|
---|
51 | module.exports = subunit;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.