Skip to content

Commit

Permalink
TAP: Conform to quoted-properties style (#3127)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment committed Oct 5, 2021
1 parent 18bd101 commit 3ef7153
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions 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,
Expand Down

0 comments on commit 3ef7153

Please sign in to comment.