diff --git a/checkers/commentFormatting_checker.go b/checkers/commentFormatting_checker.go
index 5a9564a0f..b834158ec 100644
--- a/checkers/commentFormatting_checker.go
+++ b/checkers/commentFormatting_checker.go
@@ -27,12 +27,16 @@ func init() {
"//nolint",
}
parts := []string{
- "//go:generate ", // e.g.: go:generate value
- "//line /", // e.g.: line /path/to/file:123
- "//nolint ", // e.g.: nolint
- "//noinspection ", // e.g.: noinspection ALL, some GoLand and friends versions
- "//export ", // e.g.: export Foo
- "///", // e.g.: vertical breaker /////////////
+ "//go:generate ", // e.g.: go:generate value
+ "//line /", // e.g.: line /path/to/file:123
+ "//nolint ", // e.g.: nolint
+ "//noinspection ", // e.g.: noinspection ALL, some GoLand and friends versions
+ "//region", // e.g.: region awawa, used by GoLand and friends for custom folding
+ "//endregion", // e.g.: endregion awawa or endregion, closes GoLand regions
+ "// or , used by VSCode for custom folding
+ "//", // e.g.: , closes VSCode regions
+ "//export ", // e.g.: export Foo
+ "///", // e.g.: vertical breaker /////////////
"//+",
"//#",
"//-",
diff --git a/checkers/testdata/commentFormatting/negative_tests.go b/checkers/testdata/commentFormatting/negative_tests.go
index 45cbc6ed0..e21cc368d 100644
--- a/checkers/testdata/commentFormatting/negative_tests.go
+++ b/checkers/testdata/commentFormatting/negative_tests.go
@@ -63,3 +63,13 @@ func f2() {
// Comment in a comment is //OK
// path */*//with asterisk
+
+//region GoLand custom folding region
+func goland() {
+}
+//endregion
+
+//
+func vscode() {
+}
+//