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: '}'},