Skip to content

Commit 4f80370

Browse files
author
numaru
committed
Initial commit
1 parent 757b408 commit 4f80370

8 files changed

+133
-0
lines changed

LICENSE.txt

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License
2+
3+
Copyright 2018, Kin Numaru
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Functionality
2+
3+
** TODO: Functionality description **
4+
5+
# Install
6+
7+
** TODO: Install description **
8+
9+
# Known Issues
10+
11+
Here are a few common issues.
12+
13+
* No known issues for now.

images/icon.png

26.3 KB
Loading

language-configuration.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"comments": {
3+
"lineComment": "#"
4+
}
5+
}

out/extension.js

Whitespace-only changes.

package.json

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"name": "vscode-tap",
3+
"displayName": "Tap",
4+
"version": "0.1.0",
5+
"publisher": "numaru",
6+
"description": "Test Anything Protocol support",
7+
"author": {
8+
"name": "Kin Numaru"
9+
},
10+
"categories": [
11+
"Languages",
12+
"Other"
13+
],
14+
"icon": "images/icon.png",
15+
"galleryBanner": {
16+
"color": "#FFFFFF",
17+
"theme": "dark"
18+
},
19+
"activationEvents": [
20+
"onLanguage:tap"
21+
],
22+
"engines": {
23+
"vscode": "^1.17.0"
24+
},
25+
"main": "./out/extension",
26+
"contributes": {
27+
"languages": [{
28+
"id": "tap",
29+
"aliases": ["Test Anything Protocol", "TAP"],
30+
"extensions": [".tap"],
31+
"configuration": "./language-configuration.json"
32+
}],
33+
"grammars": [{
34+
"language": "tap",
35+
"scopeName": "source.tap",
36+
"path": "./syntaxes/tap.tmLanguage.json"
37+
}]
38+
},
39+
"license": "MIT",
40+
"bugs": {
41+
"url": "https://github.com/numaru/vscode-tap/issues",
42+
"email": "kin.numaru@laposte.net"
43+
},
44+
"repository": {
45+
"type": "git",
46+
"url": "https://github.com/numaru/vscode-tap.git"
47+
},
48+
"homepage": "https://github.com/numaru/vscode-tap/blob/master/README.md"
49+
}

syntaxes/tap.tmLanguage.json

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"comment": "Test Anything Protocol Syntax: version 13",
3+
"fileTypes": ["tap"],
4+
"name": "Tap",
5+
"patterns": [{
6+
"begin": "^\\s+---$",
7+
"end": "^\\s+\\.\\.\\.$",
8+
"patterns": [{
9+
"include": "source.yaml"
10+
}]
11+
}, {
12+
"match": "#.*$",
13+
"name": "comment.line.number-sign.tap"
14+
}, {
15+
"match": "^TAP version \\d+$",
16+
"name": "markup.heading"
17+
}, {
18+
"match": "^\\d+\\.\\.\\d+$",
19+
"name": "storage.modifier"
20+
}, {
21+
"match": "^((ok|not ok) \\d+)( - ([^#\\n]*))?",
22+
"captures": {
23+
"1": {"name": "storage.type"},
24+
"4": {"name": "string.unquoted"}
25+
}
26+
}],
27+
"scopeName": "source.tap"
28+
}

test/syntax/syntax-example.tap

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
TAP version 13
2+
1..4
3+
ok 1 - Input file opened
4+
not ok 2 - First line of the input valid
5+
---
6+
message: 'First line invalid'
7+
severity: fail
8+
data:
9+
got: 'Flirble'
10+
expect: 'Fnible'
11+
...
12+
ok 3 - Read the rest of the file
13+
not ok 4 - Summarized correctly # TODO Not written yet
14+
---
15+
message: "Can't make summary yet"
16+
severity: todo
17+
...

0 commit comments

Comments
 (0)