From 8c432bf06e74edf37967e9358b2f544ba98b34f2 Mon Sep 17 00:00:00 2001 From: Marco Petersen Date: Tue, 10 Sep 2019 12:48:28 +0200 Subject: [PATCH] Add HTML rich language config --- src/twig/twig.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/twig/twig.ts b/src/twig/twig.ts index 5fc1a707..3521550c 100644 --- a/src/twig/twig.ts +++ b/src/twig/twig.ts @@ -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, ], }