|
2 | 2 | "comments": {
|
3 | 3 | "lineComment": "//",
|
4 | 4 | "blockComment": ["/*", "*/"]
|
5 |
| - }, |
| 5 | + }, |
6 | 6 | "brackets": [
|
7 |
| - ["{", "}"], |
8 |
| - ["[", "]"], |
9 |
| - ["(", ")"] |
10 |
| - ], |
| 7 | + ["{", "}"], |
| 8 | + ["[", "]"], |
| 9 | + ["(", ")"] |
| 10 | + ], |
11 | 11 | "autoCloseBefore": ", \n\t",
|
12 | 12 | "autoClosingPairs": [
|
13 |
| - { "open": "{", "close": "}" }, |
14 |
| - { "open": "[", "close": "]" }, |
15 |
| - { "open": "(", "close": ")" }, |
16 |
| - { "open": "/**", "close": " */", "notIn": ["string"] } |
17 |
| - ], |
18 |
| - "surroundingPairs": [ |
19 |
| - ["{", "}"], |
20 |
| - ["[", "]"], |
21 |
| - ["(", ")"] |
22 |
| - ], |
| 13 | + { "open": "{", "close": "}" }, |
| 14 | + { "open": "[", "close": "]" }, |
| 15 | + { "open": "(", "close": ")" }, |
| 16 | + { |
| 17 | + "open": "'", |
| 18 | + "close": "'", |
| 19 | + "notIn": ["string", "comment"] |
| 20 | + }, |
| 21 | + { |
| 22 | + "open": "\"", |
| 23 | + "close": "\"", |
| 24 | + "notIn": ["string"] |
| 25 | + }, |
| 26 | + { "open": "/**", "close": " */", "notIn": ["string"] } |
| 27 | + ], |
| 28 | + "surroundingPairs": [ |
| 29 | + ["{", "}"], |
| 30 | + ["[", "]"], |
| 31 | + ["(", ")"] |
| 32 | + ], |
23 | 33 | "indentationRules": {
|
24 |
| - "increaseIndentPattern": "^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$", |
25 |
| - "decreaseIndentPattern": "^((?!.*?\\/\\*).*\\*/)?\\s*[\\)\\}\\]].*$" |
26 |
| - }, |
27 |
| -"colorizedBracketPairs": [ |
28 |
| - ["(", ")"], |
29 |
| - ["${", "}"], |
30 |
| - ["{", "}"], |
31 |
| - ["[:", ":]"], |
32 |
| - ["[", "]"], |
33 |
| - ["<", ">"] |
34 |
| - ] |
| 34 | + "increaseIndentPattern": "^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$", |
| 35 | + "decreaseIndentPattern": "^((?!.*?\\/\\*).*\\*/)?\\s*[\\)\\}\\]].*$" |
| 36 | + }, |
| 37 | + "colorizedBracketPairs": [ |
| 38 | + ["(", ")"], |
| 39 | + ["${", "}"], |
| 40 | + ["{", "}"], |
| 41 | + ["[:", ":]"], |
| 42 | + ["[", "]"], |
| 43 | + ["<", ">"] |
| 44 | + ], |
| 45 | + "onEnterRules": [ |
| 46 | + { |
| 47 | + "beforeText": { |
| 48 | + "pattern": "^\\s*/\\*\\*(?!/)([^\\*]|\\*(?!/))*$" |
| 49 | + }, |
| 50 | + "afterText": { |
| 51 | + "pattern": "^\\s*\\*/$" |
| 52 | + }, |
| 53 | + "action": { |
| 54 | + "indent": "indentOutdent", |
| 55 | + "appendText": " * " |
| 56 | + } |
| 57 | + }, |
| 58 | + { |
| 59 | + "beforeText": { |
| 60 | + "pattern": "^\\s*/\\*\\*(?!/)([^\\*]|\\*(?!/))*$" |
| 61 | + }, |
| 62 | + "action": { |
| 63 | + "indent": "none", |
| 64 | + "appendText": " * " |
| 65 | + } |
| 66 | + }, |
| 67 | + { |
| 68 | + "beforeText": { |
| 69 | + "pattern": "^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$" |
| 70 | + }, |
| 71 | + "previousLineText": { |
| 72 | + "pattern": "(?=^(\\s*(/\\*\\*|\\*)).*)(?=(?!(\\s*\\*/)))" |
| 73 | + }, |
| 74 | + "action": { |
| 75 | + "indent": "none", |
| 76 | + "appendText": "* " |
| 77 | + } |
| 78 | + }, |
| 79 | + { |
| 80 | + "beforeText": { |
| 81 | + "pattern": "^(\\t|[ ])*[ ]\\*/\\s*$" |
| 82 | + }, |
| 83 | + "action": { |
| 84 | + "indent": "none", |
| 85 | + "removeText": 1 |
| 86 | + } |
| 87 | + } |
| 88 | + ] |
35 | 89 | }
|
0 commit comments