Skip to content

Commit 29cd536

Browse files
committed
修复注释错误问题
修复注释错误问题
1 parent 5a93ba6 commit 29cd536

17 files changed

+5262
-1535
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"comments": {
3+
"blockComment": [ "<!--", "-->" ]
4+
},
5+
"brackets": [
6+
["<!--", "-->"],
7+
["<", ">"],
8+
["{", "}"],
9+
["(", ")"]
10+
],
11+
"autoClosingPairs": [
12+
{ "open": "{", "close": "}"},
13+
{ "open": "[", "close": "]"},
14+
{ "open": "(", "close": ")" },
15+
{ "open": "'", "close": "'" },
16+
{ "open": "\"", "close": "\"" }
17+
],
18+
"surroundingPairs": [
19+
{ "open": "'", "close": "'" },
20+
{ "open": "\"", "close": "\"" },
21+
{ "open": "{", "close": "}"},
22+
{ "open": "[", "close": "]"},
23+
{ "open": "(", "close": ")" },
24+
{ "open": "<", "close": ">" }
25+
]
26+
}
+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
{ "open": "{", "close": "}" },
17+
{ "open": "[", "close": "]" },
18+
{ "open": "(", "close": ")" },
19+
{ "open": "\"", "close": "\"", "notIn": ["string"] },
20+
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
21+
{ "open": "`", "close": "`", "notIn": ["string", "comment"] },
22+
{ "open": "/**", "close": " */", "notIn": ["string"] }
23+
],
24+
// symbols that that can be used to surround a selection
25+
"surroundingPairs": [
26+
["{", "}"],
27+
["[", "]"],
28+
["(", ")"],
29+
["\"", "\""],
30+
["'", "'"],
31+
["`", "`"]
32+
],
33+
"folding": {
34+
"markers": {
35+
"start": "^<(template|style|script)[^>]*>",
36+
"end": "^</(template|style|script)>"
37+
}
38+
}
39+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"comments": {
3+
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
4+
"blockComment": [ "/*", "*/" ]
5+
},
6+
// symbols used as brackets
7+
"brackets": [
8+
["{", "}"],
9+
["[", "]"],
10+
["(", ")"]
11+
],
12+
// symbols that are auto closed when typing
13+
"autoClosingPairs": [
14+
["{", "}"],
15+
["[", "]"],
16+
["(", ")"],
17+
["\"", "\""],
18+
["'", "'"]
19+
],
20+
// symbols that that can be used to surround a selection
21+
"surroundingPairs": [
22+
["{", "}"],
23+
["[", "]"],
24+
["(", ")"],
25+
["\"", "\""],
26+
["'", "'"]
27+
]
28+
}

package.json

+91-6
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"url": "https://github.com/Wscats"
1010
},
1111
"publisher": "Wscats",
12-
"version": "1.0.21",
12+
"version": "1.0.22",
1313
"license": "MIT",
1414
"engines": {
1515
"vscode": "^1.40.0"
@@ -20,6 +20,7 @@
2020
},
2121
"activationEvents": [
2222
"*",
23+
"onLanguage:vue",
2324
"onCommand:vue3snippets.compileOn",
2425
"onCommand:vue3snippets.compileOff",
2526
"onCommand:vue3snippets.format",
@@ -97,7 +98,7 @@
9798
},
9899
"vue3snippets.printWidth": {
99100
"type": "integer",
100-
"default": 320,
101+
"default": 90,
101102
"markdownDescription": "Fit code within this line limit.",
102103
"scope": "resource"
103104
},
@@ -238,14 +239,86 @@
238239
],
239240
"extensions": [
240241
".vue"
241-
]
242+
],
243+
"configuration": "./languages/vue-language-configuration.json"
244+
},
245+
{
246+
"id": "vue-html",
247+
"aliases": [
248+
"Vue-html"
249+
],
250+
"configuration": "./languages/vue-html-language-configuration.json"
251+
},
252+
{
253+
"id": "vue-postcss",
254+
"aliases": [
255+
"Vue-PostCSS",
256+
"Vue-POSTCSS",
257+
"vue-postcss"
258+
],
259+
"configuration": "./languages/vue-postcss-language-configuration.json"
242260
}
243261
],
244262
"grammars": [
245263
{
246264
"language": "vue",
247-
"scopeName": "text.html.vue",
248-
"path": "./syntaxes/vue.tmLanguage"
265+
"scopeName": "source.vue",
266+
"path": "./syntaxes/vue-generated.json",
267+
"embeddedLanguages": {
268+
"text.html.basic": "html",
269+
"text.html.vue-html": "vue-html",
270+
"text.jade.slm": "slm",
271+
"text.pug": "jade",
272+
"text.haml": "haml",
273+
"text.slim": "slim",
274+
"text.html.liquid": "liquid",
275+
"source.css": "css",
276+
"source.css.scss": "scss",
277+
"source.css.less": "less",
278+
"source.css.postcss": "vue-postcss",
279+
"source.sass": "sass",
280+
"source.stylus": "stylus",
281+
"source.js": "javascript",
282+
"source.ts": "typescript",
283+
"source.coffee": "coffeescript",
284+
"text.html.markdown": "md",
285+
"source.yaml": "yaml",
286+
"source.json": "json",
287+
"source.php": "php",
288+
"source.graphql": "graphql"
289+
}
290+
},
291+
{
292+
"language": "vue-postcss",
293+
"scopeName": "source.css.postcss",
294+
"path": "./syntaxes/vue-postcss.json"
295+
},
296+
{
297+
"language": "vue-html",
298+
"scopeName": "text.html.vue-html",
299+
"path": "./syntaxes/vue-html.tmLanguage.json",
300+
"embeddedLanguages": {
301+
"source.js": "javascript"
302+
}
303+
},
304+
{
305+
"path": "./syntaxes/pug/directives.tmLanguage.json",
306+
"scopeName": "vue.pug.directives",
307+
"injectTo": [
308+
"source.vue"
309+
]
310+
},
311+
{
312+
"path": "./syntaxes/pug/interpolations.tmLanguage.json",
313+
"scopeName": "vue.pug.interpolations",
314+
"injectTo": [
315+
"source.vue"
316+
]
317+
}
318+
],
319+
"breakpoints": [
320+
{
321+
"language": "vue"
249322
}
250323
],
251324
"keybindings": [
@@ -261,6 +334,10 @@
261334
"language": "javascript",
262335
"path": "./snippets/javascript.json"
263336
},
337+
{
338+
"language": "javascript",
339+
"path": "./snippets/basic/javascript.json"
340+
},
264341
{
265342
"language": "typescript",
266343
"path": "./snippets/javascript.json"
@@ -273,6 +350,14 @@
273350
"language": "html",
274351
"path": "./snippets/vue.json"
275352
},
353+
{
354+
"language": "vue-html",
355+
"path": "./snippets/basic/html.json"
356+
},
357+
{
358+
"language": "css",
359+
"path": "./snippets/basic/css.json"
360+
},
276361
{
277362
"language": "vue",
278363
"path": "./snippets/javascript.json"
@@ -297,4 +382,4 @@
297382
"dependencies": {
298383
"prettier": "^2.2.1"
299384
}
300-
}
385+
}

0 commit comments

Comments
 (0)