From b21d341dff805d33d06e5fe3a07d026e61dfe464 Mon Sep 17 00:00:00 2001 From: Valerii Sidorenko Date: Thu, 5 Sep 2024 13:55:03 +0200 Subject: [PATCH] fix: do not auto close quotes inside strings and comments --- src/clickhouse/clickhouse.ts | 6 +++--- src/yql/yql.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/clickhouse/clickhouse.ts b/src/clickhouse/clickhouse.ts index b2474d6..3c69151 100644 --- a/src/clickhouse/clickhouse.ts +++ b/src/clickhouse/clickhouse.ts @@ -27,9 +27,9 @@ export const conf: languages.LanguageConfiguration = { {open: '{', close: '}'}, {open: '[', close: ']'}, {open: '(', close: ')'}, - {open: '"', close: '"'}, - {open: "'", close: "'"}, - {open: '`', close: '`'}, + {open: '"', close: '"', notIn: ['string']}, + {open: "'", close: "'", notIn: ['string', 'comment']}, + {open: '`', close: '`', notIn: ['string', 'comment']}, ], surroundingPairs: [ {open: '{', close: '}'}, diff --git a/src/yql/yql.ts b/src/yql/yql.ts index 852f0e9..2061321 100644 --- a/src/yql/yql.ts +++ b/src/yql/yql.ts @@ -16,9 +16,9 @@ export const conf: languages.LanguageConfiguration = { {open: '{', close: '}'}, {open: '[', close: ']'}, {open: '(', close: ')'}, - {open: '"', close: '"'}, - {open: "'", close: "'"}, - {open: '`', close: '`'}, + {open: '"', close: '"', notIn: ['string']}, + {open: "'", close: "'", notIn: ['string', 'comment']}, + {open: '`', close: '`', notIn: ['string', 'comment']}, ], surroundingPairs: [ {open: '{', close: '}'},