You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
525 B
22 lines
525 B
// https://en.wikipedia.org/wiki/Test_Anything_Protocol |
|
|
|
Prism.languages.tap = { |
|
'fail': /not ok[^#{\n\r]*/, |
|
'pass': /ok[^#{\n\r]*/, |
|
'pragma': /pragma [+-][a-z]+/, |
|
'bailout': /bail out!.*/i, |
|
'version': /TAP version \d+/i, |
|
'plan': /\b\d+\.\.\d+(?: +#.*)?/, |
|
'subtest': { |
|
pattern: /# Subtest(?:: .*)?/, |
|
greedy: true |
|
}, |
|
'punctuation': /[{}]/, |
|
'directive': /#.*/, |
|
'yamlish': { |
|
pattern: /(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m, |
|
lookbehind: true, |
|
inside: Prism.languages.yaml, |
|
alias: 'language-yaml' |
|
} |
|
};
|
|
|