@codingame/monaco-vscode-ini-default-extension 1.81.8-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +8 -0
- package/ini.language-configuration.json +25 -0
- package/ini.tmLanguage.json +113 -0
- package/package.json +22 -0
- package/properties.language-configuration.json +24 -0
package/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { registerExtension } from 'vscode/extensions';
|
|
2
|
+
|
|
3
|
+
var manifest = {name:"ini",displayName:"Ini Language Basics",description:"Provides syntax highlighting and bracket matching in Ini files.",version:"1.0.0",publisher:"vscode",license:"MIT",engines:{vscode:"*"},scripts:{"update-grammar":"node ../node_modules/vscode-grammar-updater/bin textmate/ini.tmbundle Syntaxes/Ini.plist ./syntaxes/ini.tmLanguage.json"},contributes:{languages:[{id:"ini",extensions:[".ini"],aliases:["Ini","ini"],configuration:"./ini.language-configuration.json"},{id:"properties",extensions:[".conf",".properties",".cfg",".directory",".gitattributes",".gitconfig",".gitmodules",".editorconfig"],filenames:["gitconfig",".env"],filenamePatterns:["**/.config/git/config","**/.git/config"],aliases:["Properties","properties"],configuration:"./properties.language-configuration.json"}],grammars:[{language:"ini",scopeName:"source.ini",path:"./syntaxes/ini.tmLanguage.json"},{language:"properties",scopeName:"source.ini",path:"./syntaxes/ini.tmLanguage.json"}]},repository:{type:"git",url:"https://github.com/microsoft/vscode.git"},main:undefined};
|
|
4
|
+
|
|
5
|
+
const { registerFileUrl } = registerExtension(manifest);
|
|
6
|
+
registerFileUrl('./syntaxes/ini.tmLanguage.json', new URL('./ini.tmLanguage.json', import.meta.url).toString(), 'application/json');
|
|
7
|
+
registerFileUrl('./ini.language-configuration.json', new URL('./ini.language-configuration.json', import.meta.url).toString(), 'application/json');
|
|
8
|
+
registerFileUrl('./properties.language-configuration.json', new URL('./properties.language-configuration.json', import.meta.url).toString(), 'application/json');
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"comments": {
|
|
3
|
+
"lineComment": ";",
|
|
4
|
+
"blockComment": [ ";", " " ]
|
|
5
|
+
},
|
|
6
|
+
"brackets": [
|
|
7
|
+
["{", "}"],
|
|
8
|
+
["[", "]"],
|
|
9
|
+
["(", ")"]
|
|
10
|
+
],
|
|
11
|
+
"autoClosingPairs": [
|
|
12
|
+
["{", "}"],
|
|
13
|
+
["[", "]"],
|
|
14
|
+
["(", ")"],
|
|
15
|
+
{ "open": "\"", "close": "\"", "notIn": ["string"] },
|
|
16
|
+
{ "open": "'", "close": "'", "notIn": ["string"] }
|
|
17
|
+
],
|
|
18
|
+
"surroundingPairs": [
|
|
19
|
+
["{", "}"],
|
|
20
|
+
["[", "]"],
|
|
21
|
+
["(", ")"],
|
|
22
|
+
["\"", "\""],
|
|
23
|
+
["'", "'"]
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
{
|
|
2
|
+
"information_for_contributors": [
|
|
3
|
+
"This file has been converted from https://github.com/textmate/ini.tmbundle/blob/master/Syntaxes/Ini.plist",
|
|
4
|
+
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
|
5
|
+
"Once accepted there, we are happy to receive an update request."
|
|
6
|
+
],
|
|
7
|
+
"version": "https://github.com/textmate/ini.tmbundle/commit/2af0cbb0704940f967152616f2f1ff0aae6287a6",
|
|
8
|
+
"name": "Ini",
|
|
9
|
+
"scopeName": "source.ini",
|
|
10
|
+
"patterns": [
|
|
11
|
+
{
|
|
12
|
+
"begin": "(^[ \\t]+)?(?=#)",
|
|
13
|
+
"beginCaptures": {
|
|
14
|
+
"1": {
|
|
15
|
+
"name": "punctuation.whitespace.comment.leading.ini"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"end": "(?!\\G)",
|
|
19
|
+
"patterns": [
|
|
20
|
+
{
|
|
21
|
+
"begin": "#",
|
|
22
|
+
"beginCaptures": {
|
|
23
|
+
"0": {
|
|
24
|
+
"name": "punctuation.definition.comment.ini"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"end": "\\n",
|
|
28
|
+
"name": "comment.line.number-sign.ini"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"begin": "(^[ \\t]+)?(?=;)",
|
|
34
|
+
"beginCaptures": {
|
|
35
|
+
"1": {
|
|
36
|
+
"name": "punctuation.whitespace.comment.leading.ini"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"end": "(?!\\G)",
|
|
40
|
+
"patterns": [
|
|
41
|
+
{
|
|
42
|
+
"begin": ";",
|
|
43
|
+
"beginCaptures": {
|
|
44
|
+
"0": {
|
|
45
|
+
"name": "punctuation.definition.comment.ini"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"end": "\\n",
|
|
49
|
+
"name": "comment.line.semicolon.ini"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"captures": {
|
|
55
|
+
"1": {
|
|
56
|
+
"name": "keyword.other.definition.ini"
|
|
57
|
+
},
|
|
58
|
+
"2": {
|
|
59
|
+
"name": "punctuation.separator.key-value.ini"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"match": "\\b([a-zA-Z0-9_.-]+)\\b\\s*(=)"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"captures": {
|
|
66
|
+
"1": {
|
|
67
|
+
"name": "punctuation.definition.entity.ini"
|
|
68
|
+
},
|
|
69
|
+
"3": {
|
|
70
|
+
"name": "punctuation.definition.entity.ini"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"match": "^(\\[)(.*?)(\\])",
|
|
74
|
+
"name": "entity.name.section.group-title.ini"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"begin": "'",
|
|
78
|
+
"beginCaptures": {
|
|
79
|
+
"0": {
|
|
80
|
+
"name": "punctuation.definition.string.begin.ini"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"end": "'",
|
|
84
|
+
"endCaptures": {
|
|
85
|
+
"0": {
|
|
86
|
+
"name": "punctuation.definition.string.end.ini"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"name": "string.quoted.single.ini",
|
|
90
|
+
"patterns": [
|
|
91
|
+
{
|
|
92
|
+
"match": "\\\\.",
|
|
93
|
+
"name": "constant.character.escape.ini"
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"begin": "\"",
|
|
99
|
+
"beginCaptures": {
|
|
100
|
+
"0": {
|
|
101
|
+
"name": "punctuation.definition.string.begin.ini"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"end": "\"",
|
|
105
|
+
"endCaptures": {
|
|
106
|
+
"0": {
|
|
107
|
+
"name": "punctuation.definition.string.end.ini"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"name": "string.quoted.double.ini"
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@codingame/monaco-vscode-ini-default-extension",
|
|
3
|
+
"version": "1.81.8-next.1",
|
|
4
|
+
"keywords": [],
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "CodinGame",
|
|
7
|
+
"url": "http://www.codingame.com"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/CodinGame/monaco-vscode-api"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"private": false,
|
|
16
|
+
"description": "Default VSCode extension designed to be used with @codingame/monaco-vscode-api",
|
|
17
|
+
"main": "index.js",
|
|
18
|
+
"module": "index.js",
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"vscode": "npm:@codingame/monaco-vscode-api@1.81.8-next.1"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"comments": {
|
|
3
|
+
"lineComment": "#",
|
|
4
|
+
"blockComment": [ "#", " " ]
|
|
5
|
+
},
|
|
6
|
+
"brackets": [
|
|
7
|
+
["{", "}"],
|
|
8
|
+
["[", "]"],
|
|
9
|
+
["(", ")"]
|
|
10
|
+
],
|
|
11
|
+
"autoClosingPairs": [
|
|
12
|
+
["{", "}"],
|
|
13
|
+
["[", "]"],
|
|
14
|
+
["(", ")"],
|
|
15
|
+
{ "open": "\"", "close": "\"", "notIn": ["string"] }
|
|
16
|
+
],
|
|
17
|
+
"surroundingPairs": [
|
|
18
|
+
["{", "}"],
|
|
19
|
+
["[", "]"],
|
|
20
|
+
["(", ")"],
|
|
21
|
+
["\"", "\""],
|
|
22
|
+
["'", "'"]
|
|
23
|
+
]
|
|
24
|
+
}
|