@codingame/monaco-vscode-java-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/java.code-snippets +16 -0
- package/java.tmLanguage.json +1883 -0
- package/language-configuration.json +102 -0
- package/package.json +22 -0
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
{ "open": "/**", "close": " */", "notIn": ["string"] }
|
|
18
|
+
],
|
|
19
|
+
"surroundingPairs": [
|
|
20
|
+
["{", "}"],
|
|
21
|
+
["[", "]"],
|
|
22
|
+
["(", ")"],
|
|
23
|
+
["\"", "\""],
|
|
24
|
+
["'", "'"],
|
|
25
|
+
["<", ">"]
|
|
26
|
+
],
|
|
27
|
+
"folding": {
|
|
28
|
+
"markers": {
|
|
29
|
+
"start": "^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))",
|
|
30
|
+
"end": "^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"onEnterRules": [
|
|
34
|
+
{
|
|
35
|
+
// e.g. /** | */
|
|
36
|
+
"beforeText": {
|
|
37
|
+
"pattern": "^\\s*/\\*\\*(?!/)([^\\*]|\\*(?!/))*$"
|
|
38
|
+
},
|
|
39
|
+
"afterText": {
|
|
40
|
+
"pattern": "^\\s*\\*/$"
|
|
41
|
+
},
|
|
42
|
+
"action": {
|
|
43
|
+
"indent": "indentOutdent",
|
|
44
|
+
"appendText": " * "
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
// e.g. /** ...|
|
|
49
|
+
"beforeText": {
|
|
50
|
+
"pattern": "^\\s*/\\*\\*(?!/)([^\\*]|\\*(?!/))*$"
|
|
51
|
+
},
|
|
52
|
+
"action": {
|
|
53
|
+
"indent": "none",
|
|
54
|
+
"appendText": " * "
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
// e.g. * ...|
|
|
59
|
+
"beforeText": {
|
|
60
|
+
"pattern": "^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$"
|
|
61
|
+
},
|
|
62
|
+
"previousLineText": {
|
|
63
|
+
"pattern": "(?=^(\\s*(/\\*\\*|\\*)).*)(?=(?!(\\s*\\*/)))"
|
|
64
|
+
},
|
|
65
|
+
"action": {
|
|
66
|
+
"indent": "none",
|
|
67
|
+
"appendText": "* "
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
// e.g. */|
|
|
72
|
+
"beforeText": {
|
|
73
|
+
"pattern": "^(\\t|[ ])*[ ]\\*/\\s*$"
|
|
74
|
+
},
|
|
75
|
+
"action": {
|
|
76
|
+
"indent": "none",
|
|
77
|
+
"removeText": 1
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
// e.g. *-----*/|
|
|
82
|
+
"beforeText": {
|
|
83
|
+
"pattern": "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$"
|
|
84
|
+
},
|
|
85
|
+
"action": {
|
|
86
|
+
"indent": "none",
|
|
87
|
+
"removeText": 1
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"beforeText": {
|
|
92
|
+
"pattern": "^\\s*(\\bcase\\s.+:|\\bdefault:)$"
|
|
93
|
+
},
|
|
94
|
+
"afterText": {
|
|
95
|
+
"pattern": "^(?!\\s*(\\bcase\\b|\\bdefault\\b))"
|
|
96
|
+
},
|
|
97
|
+
"action": {
|
|
98
|
+
"indent": "indent"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@codingame/monaco-vscode-java-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
|
+
}
|