Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Commit

Permalink
fix indentations
Browse files Browse the repository at this point in the history
missing: cases in switch
  • Loading branch information
enginelesscc committed Nov 2, 2022
1 parent 595f6b5 commit 8e189d3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions extensions/cpp/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,10 @@
"start": "^\\s*#pragma\\s+region\\b",
"end": "^\\s*#pragma\\s+endregion\\b"
}
},
"indentationRules": {
"increaseIndentPattern": "^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$",
"decreaseIndentPattern": "^((?!.*?\\/\\*).*\\*/)?\\s*[\\)\\}\\]].*$",
"indentNextLinePattern": "^.*?if.*?\\(.*?\\).*?$|^.*?case .*?:$|^.*?default:$"
}
}
5 changes: 5 additions & 0 deletions extensions/csharp/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
"start": "^\\s*#region\\b",
"end": "^\\s*#endregion\\b"
}
},
"indentationRules": {
"increaseIndentPattern": "^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$",
"decreaseIndentPattern": "^((?!.*?\\/\\*).*\\*/)?\\s*[\\)\\}\\]].*$",
"indentNextLinePattern": "^.*?if.*?\\(.*?\\).*?$|^.*?case .*?:$|^.*?default:$"
}
}

0 comments on commit 8e189d3

Please sign in to comment.