Skip to content
Permalink
Browse files
TAP: Conform to quoted-properties style (#3127)
  • Loading branch information
RunDevelopment committed Oct 5, 2021
1 parent 18bd101 commit 3ef7153345c59168501816c0f3ef8e62551158c8
Showing with 12 additions and 10 deletions.
  1. +12 −10 components/prism-tap.js
@@ -1,17 +1,19 @@
// 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: {
'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: {
'punctuation': /[{}]/,
'directive': /#.*/,
'yamlish': {
pattern: /(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,
lookbehind: true,
inside: Prism.languages.yaml,

0 comments on commit 3ef7153

Please sign in to comment.