@lvce-editor/shared-process 0.16.4 → 0.16.5
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/config/builtinCommands.json +4 -0
- package/extensions/builtin.language-basics-cpp/src/tokenizeCpp.js +4 -0
- package/extensions/builtin.language-basics-rust/LICENSE +21 -0
- package/extensions/builtin.language-basics-rust/languageConfiguration.json +17 -0
- package/extensions/builtin.theme-slime/color-theme.json +1 -0
- package/package.json +4 -4
- package/src/parts/Platform/Platform.js +3 -3
|
@@ -385,6 +385,10 @@
|
|
|
385
385
|
"id": "Developer.openProcessExplorer",
|
|
386
386
|
"label": "Developer: Open Process Explorer"
|
|
387
387
|
},
|
|
388
|
+
{
|
|
389
|
+
"id": "Developer.openBrowserViewOverview",
|
|
390
|
+
"label": "Developer: Open Browser View Overview"
|
|
391
|
+
},
|
|
388
392
|
{
|
|
389
393
|
"id": "Explorer.collapseAll",
|
|
390
394
|
"label": "Explorer: Collapse All"
|
|
@@ -114,6 +114,7 @@ const RE_INCLUDE_WITH_QUOTES = /^"([^"]*)"/
|
|
|
114
114
|
const RE_INCLUDE_WITH_ANGLE_BRACKETS = /^<[^>]*>/
|
|
115
115
|
const RE_TYPE = /^(?:size_t)\b/
|
|
116
116
|
const RE_MACRO = /^#[a-z]+/
|
|
117
|
+
const RE_FUNCTION_CALL_NAME = /^[\w]+(?=\s*(\())/
|
|
117
118
|
|
|
118
119
|
export const initialLineState = {
|
|
119
120
|
state: State.TopLevelContent,
|
|
@@ -183,6 +184,9 @@ export const tokenizeLine = (line, lineState) => {
|
|
|
183
184
|
} else if ((next = part.match(RE_TYPE))) {
|
|
184
185
|
token = TokenType.Type
|
|
185
186
|
state = State.TopLevelContent
|
|
187
|
+
} else if ((next = part.match(RE_FUNCTION_CALL_NAME))) {
|
|
188
|
+
token = TokenType.FunctionName
|
|
189
|
+
state = State.TopLevelContent
|
|
186
190
|
} else if ((next = part.match(RE_VARIABLE_NAME))) {
|
|
187
191
|
token = TokenType.VariableName
|
|
188
192
|
state = State.TopLevelContent
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022-present, Lvce Editor
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"comments": {
|
|
3
|
+
"blockComment": ["/*", "*/"]
|
|
4
|
+
},
|
|
5
|
+
"brackets": [
|
|
6
|
+
["{", "}"],
|
|
7
|
+
["[", "]"],
|
|
8
|
+
["(", ")"]
|
|
9
|
+
],
|
|
10
|
+
"autoClosingPairs": [
|
|
11
|
+
{ "open": "{", "close": "}", "notIn": ["string", "comment"] },
|
|
12
|
+
{ "open": "[", "close": "]", "notIn": ["string", "comment"] },
|
|
13
|
+
{ "open": "(", "close": ")", "notIn": ["string", "comment"] },
|
|
14
|
+
{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] },
|
|
15
|
+
{ "open": "'", "close": "'", "notIn": ["string", "comment"] }
|
|
16
|
+
]
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/shared-process",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.5",
|
|
4
4
|
"description": "Utility package for @lvce-editor/server",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@babel/code-frame": "^7.22.5",
|
|
20
|
-
"@lvce-editor/extension-host": "0.16.
|
|
21
|
-
"@lvce-editor/extension-host-helper-process": "0.16.
|
|
22
|
-
"@lvce-editor/pty-host": "0.16.
|
|
20
|
+
"@lvce-editor/extension-host": "0.16.5",
|
|
21
|
+
"@lvce-editor/extension-host-helper-process": "0.16.5",
|
|
22
|
+
"@lvce-editor/pty-host": "0.16.5",
|
|
23
23
|
"debug": "^4.3.4",
|
|
24
24
|
"execa": "^7.1.1",
|
|
25
25
|
"exit-hook": "^3.2.0",
|
|
@@ -165,11 +165,11 @@ export const getSetupName = () => {
|
|
|
165
165
|
return 'Lvce-Setup'
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
export const version = '0.16.
|
|
168
|
+
export const version = '0.16.5'
|
|
169
169
|
|
|
170
|
-
export const commit = '
|
|
170
|
+
export const commit = 'b8dddc3'
|
|
171
171
|
|
|
172
|
-
export const date = '2023-07-
|
|
172
|
+
export const date = '2023-07-05T18:20:16.000Z'
|
|
173
173
|
|
|
174
174
|
export const getVersion = () => {
|
|
175
175
|
return version
|