We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e2ad64 commit 5f6372cCopy full SHA for 5f6372c
src/hacks.ts
@@ -6,8 +6,8 @@ import * as monaco from 'monaco-editor'
6
// custom block content
7
// }
8
*/
9
-const CUSTOM_BLOCK_BEGIN_REGEX = '^\\w*(?:\\/\\/|#).*\\{'
10
-const CUSTOM_BLOCK_END_REGEX = '^\\w*(?:\\/\\/|#).*\\}'
+const CUSTOM_BLOCK_BEGIN_REGEX = '^\\s*(?:\\/\\/|#).*\\{'
+const CUSTOM_BLOCK_END_REGEX = '^\\s*(?:\\/\\/|#).*\\}'
11
export function addCustomFoldingMarkers (configuration: monaco.extra.ILanguageConfiguration): monaco.extra.ILanguageConfiguration {
12
const markers = configuration.folding?.markers
13
return {
0 commit comments