Skip to content

Commit 3ef7153

Browse files
authoredOct 5, 2021
TAP: Conform to quoted-properties style (#3127)
1 parent 18bd101 commit 3ef7153

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed
 

‎components/prism-tap.js

+12-10
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1+
// https://en.wikipedia.org/wiki/Test_Anything_Protocol
2+
13
Prism.languages.tap = {
2-
fail: /not ok[^#{\n\r]*/,
3-
pass: /ok[^#{\n\r]*/,
4-
pragma: /pragma [+-][a-z]+/,
5-
bailout: /bail out!.*/i,
6-
version: /TAP version \d+/i,
7-
plan: /\b\d+\.\.\d+(?: +#.*)?/,
8-
subtest: {
4+
'fail': /not ok[^#{\n\r]*/,
5+
'pass': /ok[^#{\n\r]*/,
6+
'pragma': /pragma [+-][a-z]+/,
7+
'bailout': /bail out!.*/i,
8+
'version': /TAP version \d+/i,
9+
'plan': /\b\d+\.\.\d+(?: +#.*)?/,
10+
'subtest': {
911
pattern: /# Subtest(?:: .*)?/,
1012
greedy: true
1113
},
12-
punctuation: /[{}]/,
13-
directive: /#.*/,
14-
yamlish: {
14+
'punctuation': /[{}]/,
15+
'directive': /#.*/,
16+
'yamlish': {
1517
pattern: /(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,
1618
lookbehind: true,
1719
inside: Prism.languages.yaml,

0 commit comments

Comments
 (0)
Please sign in to comment.