12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- function tap(hljs) {
- return {
- name: 'Test Anything Protocol',
- case_insensitive: true,
- contains: [
- hljs.HASH_COMMENT_MODE,
-
- {
- className: 'meta',
- variants: [
- {
- begin: '^TAP version (\\d+)$'
- },
- {
- begin: '^1\\.\\.(\\d+)$'
- }
- ]
- },
-
- {
- begin: /---$/,
- end: '\\.\\.\\.$',
- subLanguage: 'yaml',
- relevance: 0
- },
-
- {
- className: 'number',
- begin: ' (\\d+) '
- },
-
- {
- className: 'symbol',
- variants: [
- {
- begin: '^ok'
- },
- {
- begin: '^not ok'
- }
- ]
- }
- ]
- };
- }
- module.exports = tap;
|