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