Skip to content

Commit

Permalink
fix: do not auto close quotes inside strings and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeraS committed Sep 5, 2024
1 parent 1e9f0c6 commit b21d341
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/clickhouse/clickhouse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: '}'},
Expand Down
6 changes: 3 additions & 3 deletions src/yql/yql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: '}'},
Expand Down

0 comments on commit b21d341

Please sign in to comment.