Skip to content

Commit 6c6016d

Browse files
committed
Working on a new feature, just na bozza ;)
1 parent e52eec5 commit 6c6016d

File tree

4 files changed

+217
-0
lines changed

4 files changed

+217
-0
lines changed

package.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,25 @@
3434
}
3535
}
3636
],
37+
"grammars": [
38+
{
39+
"language": "duckyscript",
40+
"scopeName": "source.duckyscript",
41+
"path": "./syntaxes/duckyscript.tmLanguage.json"
42+
}
43+
],
44+
"themes": [
45+
{
46+
"label": "DarkDuckyScript",
47+
"uiTheme": "vs-dark",
48+
"path": "./themes/DarkDuckyScript-color-theme.json"
49+
},
50+
{
51+
"label": "LightDuckyScript",
52+
"uiTheme": "vs",
53+
"path": "./themes/LightDuckyScript-color-theme.json"
54+
}
55+
],
3756
"commands": [
3857
{
3958
"command": "duckyscript.Cookbook",
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
3+
"name": "DuckyScript",
4+
"patterns": [
5+
{
6+
"include": "#comments"
7+
},
8+
{
9+
"include": "#keywords"
10+
}
11+
],
12+
"repository": {
13+
"comments": {
14+
"patterns": [
15+
{
16+
"include": "#in_line_comment"
17+
},
18+
{
19+
"include": "#multi_line_comment"
20+
}
21+
],
22+
"repository": {
23+
"in_line_comment": {
24+
"patterns": [
25+
{
26+
"name": "comment.inline.duckyscript",
27+
"match": "^REM\\s+.*$"
28+
}
29+
]
30+
},
31+
"multi_line_comment": {
32+
"begin": "^REM_BLOCK(?:\\s.*)?$",
33+
"end": "^.*END_REM",
34+
"name": "comment.block.duckyscript"
35+
}
36+
}
37+
},
38+
"keywords": {
39+
"patterns": [
40+
{
41+
"include": "#declaration_keywords"
42+
},
43+
{
44+
"include": "#operator_keywords"
45+
},
46+
{
47+
"include": "#statement_keywords"
48+
},
49+
{
50+
"include": "#true_condition_keywords"
51+
}
52+
],
53+
"repository": {
54+
"declaration_keywords": {
55+
"patterns": [
56+
{
57+
"name": "keyword.declaration.duckyscript",
58+
"match": "(DEFINE|VAR)"
59+
}
60+
]
61+
},
62+
"operator_keywords": {
63+
"patterns": [
64+
{
65+
"name": "keyword.operator.duckyscript",
66+
"match": "(=|+|-|*|/|%|^)"
67+
}
68+
]
69+
},
70+
"statement_keywords": {
71+
"patterns": [
72+
{
73+
"name": "keyword.statement.duckyscript",
74+
"match": "(IF|ELSE|THEN|END_IF|WHILE|END_WHILE)"
75+
}
76+
]
77+
},
78+
"true_condition_keywords": {
79+
"patterns": [
80+
{
81+
"name": "keyword.truecondition.duckyscript",
82+
"match": "(TRUE|FALSE)"
83+
}
84+
]
85+
}
86+
}
87+
}
88+
},
89+
"scopeName": "source.asp"
90+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"name": "DuckyScript",
3+
"type": "dark",
4+
"tokenColors": [
5+
{
6+
"name": "Comment",
7+
"scope": [
8+
"comment.inline.duckyscript",
9+
"comment.block.duckyscript"
10+
],
11+
"settings": {
12+
"fontStyle": "italic",
13+
"foreground": "#7b9726"
14+
}
15+
},
16+
{
17+
"name": "Declaration Keyword",
18+
"scope": [
19+
"keyword.declaration.duckyscript"
20+
],
21+
"settings": {
22+
"foreground": "#4A90E2"
23+
}
24+
},
25+
{
26+
"name": "Operator Keyword",
27+
"scope": [
28+
"keyword.operator.duckyscript"
29+
],
30+
"settings": {
31+
"foreground": "#FF6A3D"
32+
}
33+
},
34+
{
35+
"name": "Statement Keyword",
36+
"scope": [
37+
"keyword.statement.duckyscript"
38+
],
39+
"settings": {
40+
"foreground": "#ffc04b"
41+
}
42+
},
43+
{
44+
"name": "True Condition Keyword",
45+
"scope": [
46+
"keyword.truecondition.duckyscript"
47+
],
48+
"settings": {
49+
"foreground": "#AB47BC"
50+
}
51+
}
52+
],
53+
"semanticHighlighting": true,
54+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"name": "DuckyScript",
3+
"type": "light",
4+
"tokenColors": [
5+
{
6+
"name": "Comment",
7+
"scope": [
8+
"comment.inline.duckyscript",
9+
"comment.block.duckyscript"
10+
],
11+
"settings": {
12+
"fontStyle": "italic",
13+
"foreground": "#6B8E23"
14+
}
15+
},
16+
{
17+
"name": "Declaration Keyword",
18+
"scope": [
19+
"keyword.declaration.duckyscript"
20+
],
21+
"settings": {
22+
"foreground": "#1E90FF"
23+
}
24+
},
25+
{
26+
"name": "Operator Keyword",
27+
"scope": [
28+
"keyword.operator.duckyscript"
29+
],
30+
"settings": {
31+
"foreground": "#D2691E"
32+
}
33+
},
34+
{
35+
"name": "Statement Keyword",
36+
"scope": [
37+
"keyword.statement.duckyscript"
38+
],
39+
"settings": {
40+
"foreground": "#FF8C00"
41+
}
42+
},
43+
{
44+
"name": "True Condition Keyword",
45+
"scope": [
46+
"keyword.truecondition.duckyscript"
47+
],
48+
"settings": {
49+
"foreground": "#8A2BE2"
50+
}
51+
}
52+
],
53+
"semanticHighlighting": true,
54+
}

0 commit comments

Comments
 (0)