Skip to content

Commit fbd0178

Browse files
update
1 parent 7412ded commit fbd0178

File tree

7 files changed

+67
-44
lines changed

7 files changed

+67
-44
lines changed

.vscode/launch.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// A launch configuration that launches the extension inside a new window
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
51
{
62
"version": "0.2.0",
73
"configurations": [

.vscodeignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
.vscode/**
22
.vscode-test/**
3-
.gitignore
4-
vsc-extension-quickstart.md
3+
.gitignore

language-configuration.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,20 @@
11
{
22
"comments": {
3-
// symbol used for single line comment. Remove this entry if your language does not support line comments
43
"lineComment": "//",
5-
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
64
"blockComment": [ "/*", "*/" ]
75
},
8-
// symbols used as brackets
96
"brackets": [
107
["{", "}"],
118
["[", "]"],
129
["(", ")"]
1310
],
14-
// symbols that are auto closed when typing
1511
"autoClosingPairs": [
1612
["{", "}"],
1713
["[", "]"],
1814
["(", ")"],
1915
["\"", "\""],
2016
["'", "'"]
2117
],
22-
// symbols that can be used to surround a selection
2318
"surroundingPairs": [
2419
["{", "}"],
2520
["[", "]"],

package.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
"displayName": "JunLang",
44
"description": "",
55
"publisher": "Jun-Software",
6-
"version": "1.0.0",
6+
"version": "1.1.0",
77
"engines": {
88
"vscode": "^1.54.0"
99
},
1010
"categories": [
11-
"Programming Languages"
11+
"Programming Languages",
12+
"Snippets"
1213
],
1314
"contributes": {
1415
"languages": [{
@@ -21,6 +22,16 @@
2122
"language": "junlang",
2223
"scopeName": "source.junlang",
2324
"path": "./syntaxes/junlang.tmLanguage.json"
24-
}]
25+
}],
26+
"snippets": [
27+
{
28+
"language": "junlang",
29+
"path": "./snippets/junlang.if.code-snippets"
30+
},
31+
{
32+
"language": "junlang",
33+
"path": "./snippets/junlang.loop.code-snippets"
34+
}
35+
]
2536
}
2637
}

snnippets/junlang.if.code-snippets

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"junlang.if": {
3+
"prefix": "if",
4+
"body": [
5+
"if $1",
6+
"$2",
7+
"end-if"
8+
],
9+
"description": "`junlang.if` snippets."
10+
}
11+
}

snnippets/junlang.loop.code-snippets

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"junlang.loop": {
3+
"prefix": "loop",
4+
"body": [
5+
"loop $1",
6+
"$2",
7+
"end-loop"
8+
],
9+
"description": "`junlang.loop` snippets."
10+
}
11+
}

syntaxes/junlang.tmLanguage.json

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
{
2-
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
3-
"name": "junlang",
4-
"patterns": [
5-
{
6-
"include": "#keywords"
7-
},
8-
{
9-
"include": "#strings"
10-
}
11-
],
12-
"repository": {
13-
"keywords": {
14-
"patterns": [{
15-
"name": "keyword.control.junlang",
16-
"match": "\\b(output|wrap|new|set|input|addition|subtraction|multiplication|division|equal|greater|less|equal_or_greater|equal_or_less|not|if|end-if|loop|end-loop)\\b"
17-
}, {
2+
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
3+
"name": "junlang",
4+
"patterns": [
5+
{
6+
"include": "#keywords"
7+
},
8+
{
9+
"include": "#strings"
10+
}
11+
],
12+
"repository": {
13+
"keywords": {
14+
"patterns": [{
15+
"name": "keyword.control.junlang",
16+
"match": "\\b(output|wrap|new|set|input|addition|subtraction|multiplication|division|equal|greater|less|equal_or_greater|equal_or_less|not|if|end-if|loop|end-loop)\\b"
17+
}, {
1818
"name": "comment.line.junlang",
1919
"begin": "note",
2020
"end": "\n"
2121
}]
22-
},
23-
"strings": {
24-
"name": "string.quoted.double.junlang",
25-
"begin": "\"",
26-
"end": "\"",
27-
"patterns": [
28-
{
29-
"name": "constant.character.escape.junlang",
30-
"match": "\\\\."
31-
}
32-
]
33-
}
34-
},
35-
"scopeName": "source.junlang"
22+
},
23+
"strings": {
24+
"name": "string.quoted.double.junlang",
25+
"begin": "\"",
26+
"end": "\"",
27+
"patterns": [
28+
{
29+
"name": "constant.character.escape.junlang",
30+
"match": "\\\\."
31+
}
32+
]
33+
}
34+
},
35+
"scopeName": "source.junlang"
3636
}

0 commit comments

Comments
 (0)