mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 16:15:41 +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"] }
|
||||
]
|
||||
],
|
||||
|
||||
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