Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
numaru committed Feb 5, 2018
1 parent 757b408 commit 4f80370
Show file tree
Hide file tree
Showing 8 changed files with 133 additions and 0 deletions.
21 changes: 21 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License

Copyright 2018, Kin Numaru

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Functionality

** TODO: Functionality description **

# Install

** TODO: Install description **

# Known Issues

Here are a few common issues.

* No known issues for now.
Binary file added images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"comments": {
"lineComment": "#"
}
}
Empty file added out/extension.js
Empty file.
49 changes: 49 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"name": "vscode-tap",
"displayName": "Tap",
"version": "0.1.0",
"publisher": "numaru",
"description": "Test Anything Protocol support",
"author": {
"name": "Kin Numaru"
},
"categories": [
"Languages",
"Other"
],
"icon": "images/icon.png",
"galleryBanner": {
"color": "#FFFFFF",
"theme": "dark"
},
"activationEvents": [
"onLanguage:tap"
],
"engines": {
"vscode": "^1.17.0"
},
"main": "./out/extension",
"contributes": {
"languages": [{
"id": "tap",
"aliases": ["Test Anything Protocol", "TAP"],
"extensions": [".tap"],
"configuration": "./language-configuration.json"
}],
"grammars": [{
"language": "tap",
"scopeName": "source.tap",
"path": "./syntaxes/tap.tmLanguage.json"
}]
},
"license": "MIT",
"bugs": {
"url": "https://github.com/numaru/vscode-tap/issues",
"email": "[email protected]"
},
"repository": {
"type": "git",
"url": "https://github.com/numaru/vscode-tap.git"
},
"homepage": "https://github.com/numaru/vscode-tap/blob/master/README.md"
}
28 changes: 28 additions & 0 deletions syntaxes/tap.tmLanguage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"comment": "Test Anything Protocol Syntax: version 13",
"fileTypes": ["tap"],
"name": "Tap",
"patterns": [{
"begin": "^\\s+---$",
"end": "^\\s+\\.\\.\\.$",
"patterns": [{
"include": "source.yaml"
}]
}, {
"match": "#.*$",
"name": "comment.line.number-sign.tap"
}, {
"match": "^TAP version \\d+$",
"name": "markup.heading"
}, {
"match": "^\\d+\\.\\.\\d+$",
"name": "storage.modifier"
}, {
"match": "^((ok|not ok) \\d+)( - ([^#\\n]*))?",
"captures": {
"1": {"name": "storage.type"},
"4": {"name": "string.unquoted"}
}
}],
"scopeName": "source.tap"
}
17 changes: 17 additions & 0 deletions test/syntax/syntax-example.tap
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
TAP version 13
1..4
ok 1 - Input file opened
not ok 2 - First line of the input valid
---
message: 'First line invalid'
severity: fail
data:
got: 'Flirble'
expect: 'Fnible'
...
ok 3 - Read the rest of the file
not ok 4 - Summarized correctly # TODO Not written yet
---
message: "Can't make summary yet"
severity: todo
...

0 comments on commit 4f80370

Please sign in to comment.