Skip to content

Commit b969f73

Browse files
authored
Merge pull request #38 from ShadowDara/vscodeex
Vscodeex
2 parents 1a4a5a2 + 5b15d94 commit b969f73

6 files changed

Lines changed: 144 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ index.html
2424
pages/links.md
2525

2626
/minifier/target
27+
28+
*.vsix

vscode-ex/.vscode/launch.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Run Extension",
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"runtimeExecutable": "${execPath}",
9+
"args": [
10+
"--extensionDevelopmentPath=${workspaceFolder}"
11+
]
12+
}
13+
]
14+
}

vscode-ex/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# samfile highliting
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"comments": {
3+
"lineComment": "#",
4+
},
5+
6+
"brackets": [
7+
["(", ")"],
8+
["[", "]"],
9+
["{", "}"]
10+
],
11+
12+
"autoClosingPairs": [
13+
{ "open": "\"", "close": "\"" },
14+
{ "open": "'", "close": "'" },
15+
{ "open": "(", "close": ")" },
16+
{ "open": "{", "close": "}" },
17+
{ "open": "[", "close": "]" }
18+
]
19+
}

vscode-ex/package.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "samfile",
3+
"displayName": "Samfile",
4+
"description": "Syntax Highlighting for Samfiles",
5+
"version": "0.0.2",
6+
"publisher": "your-name",
7+
8+
"engines": {
9+
"vscode": "^1.90.0"
10+
},
11+
12+
"categories": [
13+
"Programming Languages"
14+
],
15+
16+
"contributes": {
17+
"languages": [
18+
{
19+
"id": "samfile",
20+
"aliases": [
21+
"Samfile"
22+
],
23+
"extensions": [],
24+
"filenames": [
25+
"Samfile"
26+
],
27+
"configuration": "./language-configuration.json"
28+
}
29+
],
30+
31+
"grammars": [
32+
{
33+
"language": "samfile",
34+
"scopeName": "source.samfile",
35+
"path": "./syntaxes/samfile.tmLanguage.json"
36+
}
37+
]
38+
}
39+
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
3+
"name": "Samfile",
4+
"scopeName": "source.samfile",
5+
"patterns": [
6+
{
7+
"include": "#comments"
8+
},
9+
{
10+
"include": "#targets"
11+
},
12+
{
13+
"include": "#commands"
14+
},
15+
{
16+
"include": "#strings"
17+
},
18+
{
19+
"include": "#urls"
20+
}
21+
],
22+
"repository": {
23+
"comments": {
24+
"patterns": [
25+
{
26+
"name": "comment.line.number-sign.samfile",
27+
"match": "#.*$"
28+
}
29+
]
30+
},
31+
"targets": {
32+
"patterns": [
33+
{
34+
"name": "entity.name.function.samfile",
35+
"match": "^[A-Za-z0-9_-]+(?=:)"
36+
}
37+
]
38+
},
39+
"commands": {
40+
"patterns": [
41+
{
42+
"name": "keyword.control.samfile",
43+
"match": "\\b(RUN|SHELL|SHELLWIN|RM|MV|CP|ECHO|echo|PROMPT|CD|MKDIR|RMDIR)\\b"
44+
}
45+
]
46+
},
47+
"strings": {
48+
"patterns": [
49+
{
50+
"name": "string.quoted.double.samfile",
51+
"begin": "\"",
52+
"end": "\""
53+
},
54+
{
55+
"name": "string.unquoted.filename.samfile",
56+
"match": "\\b[\\w./-]+\\.(html|cpp|c|hpp|h|js|ts|json|wasm|data|png|jpg|txt|bat|exe)\\b"
57+
}
58+
]
59+
},
60+
"urls": {
61+
"patterns": [
62+
{
63+
"name": "markup.underline.link.samfile",
64+
"match": "https?://[^\\s]+"
65+
}
66+
]
67+
}
68+
}
69+
}

0 commit comments

Comments
 (0)