also recognize // #region ... as valid markers (#278943)

Co-authored-by: Benjamin Pasero <benjamin.pasero@gmail.com>
This commit is contained in:
bilogic
2025-11-26 15:21:41 +08:00
committed by GitHub
parent 563be3172e
commit c50bca2e13

View File

@@ -105,8 +105,8 @@
},
"folding": {
"markers": {
"start": "^\\s*(#|\/\/)region\\b",
"end": "^\\s*(#|\/\/)endregion\\b"
"start": "^\\s*(#|\/\/|\/\/ #)region\\b",
"end": "^\\s*(#|\/\/|\/\/ #)endregion\\b"
}
},
"wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\-\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)",