Skip to content

Commit e25d336

Browse files
authored
v1.0.0
1 parent ac1770b commit e25d336

File tree

7 files changed

+409
-0
lines changed

7 files changed

+409
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Change Log
2+
3+
## 1.0.0
4+
5+
- Initial release

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# mml2vgm-mml README
2+
3+
A Syntax Coloring extension for MML based on mml2vgm (.gwi)
4+
5+
## Known Issues
6+
7+
"!" command is not coloring correctly. (need your ideas)

icon.png

38.8 KB
Loading

language-configuration.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"comments": {
3+
// symbol used for single line comment. Remove this entry if your language does not support line comments
4+
"lineComment": "//",
5+
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
6+
"blockComment": [ "/*", "*/" ]
7+
},
8+
// symbols used as brackets
9+
"brackets": [
10+
["{", "}"],
11+
["[", "]"],
12+
["(", ")"]
13+
],
14+
// symbols that are auto closed when typing
15+
"autoClosingPairs": [
16+
["{", "}"],
17+
["[", "]"],
18+
["(", ")"],
19+
["\"", "\""],
20+
],
21+
// symbols that that can be used to surround a selection
22+
"surroundingPairs": [
23+
["{", "}"],
24+
["[", "]"],
25+
["(", ")"],
26+
["\"", "\""],
27+
]
28+
}

package.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "mml2vgm-mml",
3+
"displayName": "mml2vgm mml",
4+
"description": "mml2vgm mml (.gwi)",
5+
"version": "1.0.0",
6+
"publisher": "sdhizumi",
7+
"icon": "icon.png",
8+
"engines": {
9+
"vscode": "^1.34.0"
10+
},
11+
"categories": [
12+
"Programming Languages",
13+
"Snippets"
14+
],
15+
"repository": {
16+
"type": "git",
17+
"url": ""
18+
},
19+
"contributes": {
20+
"languages": [
21+
{
22+
"id": "mml2vgm",
23+
"aliases": [
24+
"mml2vgm",
25+
"mml2vgm"
26+
],
27+
"extensions": [
28+
"gwi"
29+
],
30+
"configuration": "./language-configuration.json"
31+
}
32+
],
33+
"snippets": [
34+
{
35+
"language": "mml2vgm",
36+
"path": "./snippets/mml2vgm.snippets.json"
37+
}
38+
],
39+
"grammars": [
40+
{
41+
"language": "mml2vgm",
42+
"scopeName": "source.mml2vgm",
43+
"path": "./syntaxes/mml2vgm.tmLanguage.json"
44+
}
45+
]
46+
},
47+
"__metadata": {
48+
"id": "74ee3a61-fc53-4e8c-b334-821f991bee06",
49+
"publisherDisplayName": "sdhizumi",
50+
"publisherId": "22bd5781-c64d-4644-9064-6c0c9a6ae23d"
51+
}
52+
}

snippets/mml2vgm.snippets.json

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
{
2+
"FM Template":
3+
{
4+
"prefix": "'@ F",
5+
"body":[
6+
" No",
7+
"'@ F $1",
8+
" AR DR SR RR SL TL KS ML DT",
9+
"'@ 00 00 00 00 00 00 00 00 00",
10+
"'@ 00 00 00 00 00 00 00 00 00",
11+
"'@ 00 00 00 00 00 00 00 00 00",
12+
"'@ 00 00 00 00 00 00 00 00 00",
13+
" AL FB",
14+
"'@ 00 00"
15+
],
16+
"description": "add FM instrument template"
17+
},
18+
"OPL Template":
19+
{
20+
"prefix": "'@ L",
21+
"body":[
22+
" No",
23+
"'@ L $1",
24+
" AR DR SL RR KL MT AM VB EG KR DT",
25+
"'@ 00 00 00 00 00 00 00 00 00 00 00",
26+
"'@ 00 00 00 00 00 00 00 00 00 00 00",
27+
" TL FB",
28+
"'@ 00 00"
29+
],
30+
"description": "add OPL instrument template"
31+
},
32+
"OPN Template":
33+
{
34+
"prefix": "'@ N",
35+
"body":[
36+
" No",
37+
"'@ N $1",
38+
" AR DR SR RR SL TL KS ML DT AM SSGEG",
39+
"'@ 00 00 00 00 00 000 00 00 00 00 00",
40+
"'@ 00 00 00 00 00 000 00 00 00 00 00",
41+
"'@ 00 00 00 00 00 000 00 00 00 00 00",
42+
"'@ 00 00 00 00 00 000 00 00 00 00 00",
43+
" AL FB",
44+
"'@ 00 00"
45+
],
46+
"description": "add OPN instrument template"
47+
},
48+
"OPM Template":
49+
{
50+
"prefix": "'@ M",
51+
"body":[
52+
" No",
53+
"'@ M $1",
54+
" AR DR SR RR SL TL KS ML DT1 DT2 AME",
55+
"'@ 00 00 00 00 00 000 00 00 00 00 00",
56+
"'@ 00 00 00 00 00 000 00 00 00 00 00",
57+
"'@ 00 00 00 00 00 000 00 00 00 00 00",
58+
"'@ 00 00 00 00 00 000 00 00 00 00 00",
59+
" AL FB",
60+
"'@ 00 00"
61+
],
62+
"description": "add OPM instrument template"
63+
},
64+
"PCM Template":
65+
{
66+
"prefix": "'@ P",
67+
"body":[
68+
" No , \"FileName\" , [BaseFreq] , Volume ( , [ChipName] , [Option] )",
69+
"'@ P $1 , \"XXXX.wav\" , 8000 , 100"
70+
],
71+
"description": "add PCM instrument template"
72+
},
73+
"PCM Template (Advanced1)":
74+
{
75+
"prefix": "'@ PD",
76+
"body":[
77+
" \"FileName\" , ChipName , [SrcStartAdr] , [DesStartAdr] , [Length] , [Option]",
78+
"'@ PD \"XXXX.wav\" , OPN2"
79+
],
80+
"description": "add PCM instrument template"
81+
},
82+
"WAVETABLE Template":
83+
{
84+
"prefix": "'@ H",
85+
"body":[
86+
" No",
87+
"'@ H $1",
88+
" +0 +1 +2 +3 +4 +5 +6 +7",
89+
"'@ 000 000 000 000 000 000 000 000",
90+
"'@ 000 000 000 000 000 000 000 000",
91+
"'@ 000 000 000 000 000 000 000 000",
92+
"'@ 000 000 000 000 000 000 000 000"
93+
],
94+
"description": "add WAVETABLE instrument template"
95+
},
96+
"ENVELOPE Template":
97+
{
98+
"prefix": "'@ E",
99+
"body":[
100+
" No , SV , AR , DR , SL , SR , RR , ST , ChipName",
101+
"'@ E $1, 000, 000, 000, 000, 000, 000, 000"
102+
],
103+
"description": "add ENVELOPE instrument template"
104+
},
105+
"MUCOM88 Inport":
106+
{
107+
"prefix": "'@ MU",
108+
"body":[
109+
"'@ MUCOM88 0,\"$1"
110+
],
111+
"description": "inport MUCOM88 instrument"
112+
},
113+
"MUCOM88 ADPCM Inport":
114+
{
115+
"prefix": "'@ MU",
116+
"body":[
117+
"'@ MUCOM88ADPCM $1"
118+
],
119+
"description": "inport MUCOM88 ADPCM instrument"
120+
},
121+
"TFI Inport":
122+
{
123+
"prefix": "'@ T",
124+
"body":[
125+
"'@ TFI $1"
126+
],
127+
"description": "inport TFI instrument"
128+
},
129+
"Tone Doubler Template":
130+
{
131+
"prefix": "'@ TD",
132+
"body":[
133+
" No",
134+
"'@ TD $1",
135+
" OP1ML OP2ML OP3ML OP4ML OP1DT2 OP2DT2 OP3DT2 OP4DT2 KeyShift"
136+
],
137+
"description": "add Tone Doubler template"
138+
}
139+
}

0 commit comments

Comments
 (0)