mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 10:25:42 +01:00
Add HTML rich language config
This commit is contained in:
parent
737b9e4b88
commit
8c432bf06e
1 changed files with 4 additions and 0 deletions
|
|
@ -5,6 +5,8 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
import { conf as htmlConf, language as htmlLanguage } from '../html/html';
|
||||
|
||||
import IRichLanguageConfiguration = monaco.languages.LanguageConfiguration;
|
||||
import ILanguage = monaco.languages.IMonarchLanguage;
|
||||
|
||||
|
|
@ -21,6 +23,7 @@ export const conf: IRichLanguageConfiguration = {
|
|||
['{{', '}}'],
|
||||
['(', ')'],
|
||||
['[', ']'],
|
||||
...htmlConf.brackets,
|
||||
],
|
||||
|
||||
autoClosingPairs: [
|
||||
|
|
@ -36,6 +39,7 @@ export const conf: IRichLanguageConfiguration = {
|
|||
surroundingPairs: [
|
||||
{ open: '"', close: '"' },
|
||||
{ open: '\'', close: '\'' },
|
||||
...htmlConf.surroundingPairs,
|
||||
],
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue