source: node_modules/prismjs/components/prism-tap.js

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: 525 bytes
Line 
1// https://en.wikipedia.org/wiki/Test_Anything_Protocol
2
3Prism.languages.tap = {
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': {
11 pattern: /# Subtest(?:: .*)?/,
12 greedy: true
13 },
14 'punctuation': /[{}]/,
15 'directive': /#.*/,
16 'yamlish': {
17 pattern: /(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,
18 lookbehind: true,
19 inside: Prism.languages.yaml,
20 alias: 'language-yaml'
21 }
22};
Note: See TracBrowser for help on using the repository browser.