mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
simpler function is used in order to cover lambda functions
This commit is contained in:
@@ -139,7 +139,7 @@
|
|||||||
"pattern": "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*\\*([ ]([^\\*]|\\*(?!/))*)?$"
|
"pattern": "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*\\*([ ]([^\\*]|\\*(?!/))*)?$"
|
||||||
},
|
},
|
||||||
"indentNextLinePattern": {
|
"indentNextLinePattern": {
|
||||||
"pattern": "^\\s*(var|const|let)\\s+\\w+\\s*=\\s*\\(.*\\)\\s*=>\\s*$"
|
"pattern": "^.*=>\\s*$"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"onEnterRules": [
|
"onEnterRules": [
|
||||||
|
|||||||
@@ -8,5 +8,5 @@ export const javascriptIndentationRules = {
|
|||||||
increaseIndentPattern: /^((?!\/\/).)*(\{([^}"'`]*|(\t|[ ])*\/\/.*)|\([^)"'`]*|\[[^\]"'`]*)$/,
|
increaseIndentPattern: /^((?!\/\/).)*(\{([^}"'`]*|(\t|[ ])*\/\/.*)|\([^)"'`]*|\[[^\]"'`]*)$/,
|
||||||
// e.g. * ...| or */| or *-----*/|
|
// e.g. * ...| or */| or *-----*/|
|
||||||
unIndentedLinePattern: /^(\t|[ ])*[ ]\*[^/]*\*\/\s*$|^(\t|[ ])*[ ]\*\/\s*$|^(\t|[ ])*[ ]\*([ ]([^\*]|\*(?!\/))*)?$/,
|
unIndentedLinePattern: /^(\t|[ ])*[ ]\*[^/]*\*\/\s*$|^(\t|[ ])*[ ]\*\/\s*$|^(\t|[ ])*[ ]\*([ ]([^\*]|\*(?!\/))*)?$/,
|
||||||
indentNextLinePattern: /^\s*(var|const|let)\s+\w+\s*=\s*\(.*\)\s*=>\s*$/,
|
indentNextLinePattern: /^.*=>\s*$/,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user