mirror of
https://github.com/Microsoft/vscode
synced 2024-07-05 01:08:57 +00:00
adding dollar sign at the end of the regex to match the full line
This commit is contained in:
parent
bdf352fe4e
commit
5228f5a8b6
|
@ -139,7 +139,7 @@
|
|||
"pattern": "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*\\*([ ]([^\\*]|\\*(?!/))*)?$"
|
||||
},
|
||||
"indentNextLinePattern": {
|
||||
"pattern": "^.*[if|while|for]\\s*\\(.*\\)\\s*"
|
||||
"pattern": "^.*[if|while|for]\\s*\\(.*\\)\\s*$"
|
||||
}
|
||||
},
|
||||
"onEnterRules": [
|
||||
|
|
|
@ -8,5 +8,5 @@ export const javascriptIndentationRules = {
|
|||
increaseIndentPattern: /^((?!\/\/).)*(\{([^}"'`]*|(\t|[ ])*\/\/.*)|\([^)"'`]*|\[[^\]"'`]*)$/,
|
||||
// e.g. * ...| or */| or *-----*/|
|
||||
unIndentedLinePattern: /^(\t|[ ])*[ ]\*[^/]*\*\/\s*$|^(\t|[ ])*[ ]\*\/\s*$|^(\t|[ ])*[ ]\*([ ]([^\*]|\*(?!\/))*)?$/,
|
||||
indentNextLinePattern: /^.*[if|while|for]\s*\(.*\)\s*/
|
||||
indentNextLinePattern: /^.*[if|while|for]\s*\(.*\)\s*$/
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user