Add folding rules

This commit is contained in:
Alex Dima 2018-03-14 11:52:52 +01:00
parent 46247f86ca
commit 21ac5f13ec
17 changed files with 115 additions and 15 deletions

View file

@ -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>{