mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 19:42:56 +01:00
Add folding rules
This commit is contained in:
parent
46247f86ca
commit
21ac5f13ec
17 changed files with 115 additions and 15 deletions
|
|
@ -34,7 +34,13 @@ export const conf: IRichLanguageConfiguration = {
|
|||
{ open: '"', close: '"' },
|
||||
{ open: '\'', close: '\'' },
|
||||
{ open: '<', close: '>' },
|
||||
]
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),
|
||||
end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const language = <ILanguage>{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue