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
|
|
@ -31,7 +31,13 @@ export const conf: IRichLanguageConfiguration = {
|
|||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: '\'', close: '\'' },
|
||||
]
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp("^\\s*#pragma\\s+region\\b"),
|
||||
end: new RegExp("^\\s*#pragma\\s+endregion\\b")
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const language = <ILanguage>{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue