mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 23:13:02 +01:00
Add folding configuration
This commit is contained in:
parent
6d29cf6810
commit
98b335974d
1 changed files with 8 additions and 3 deletions
|
|
@ -121,7 +121,12 @@ const richEditConfiguration:monaco.languages.LanguageConfiguration = {
|
||||||
{ open: '\'', close: '\'', notIn: ['string', 'comment'] },
|
{ open: '\'', close: '\'', notIn: ['string', 'comment'] },
|
||||||
{ open: '`', close: '`', notIn: ['string', 'comment'] },
|
{ open: '`', close: '`', notIn: ['string', 'comment'] },
|
||||||
{ open: "/**", close: " */", notIn: ["string"] }
|
{ open: "/**", close: " */", notIn: ["string"] }
|
||||||
]
|
],
|
||||||
|
|
||||||
|
folding: {
|
||||||
|
markers: {
|
||||||
|
start: new RegExp("^\\s*//\\s*#?region\\b"),
|
||||||
|
end: new RegExp("^\\s*//\\s*#?endregion\\b")
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue