From ab938f2536d23c65d8d7b93d3486552abaf5b420 Mon Sep 17 00:00:00 2001 From: Karl Burtram Date: Mon, 23 Jul 2018 21:10:01 -0400 Subject: [PATCH] Remove @ from word separators (#1990) --- extensions/sql/language-configuration.json | 5 +++-- src/vs/editor/common/model/wordHelper.ts | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/extensions/sql/language-configuration.json b/extensions/sql/language-configuration.json index ee314b0184..9543694145 100644 --- a/extensions/sql/language-configuration.json +++ b/extensions/sql/language-configuration.json @@ -12,8 +12,9 @@ ["{", "}"], ["[", "]"], ["(", ")"], - ["\"", "\""], - ["'", "'"] + { "open": "\"", "close": "\"", "notIn": ["string"] }, + { "open": "N'", "close": "'", "notIn": ["string", "comment"] }, + { "open": "'", "close": "'", "notIn": ["string", "comment"] } ], "surroundingPairs": [ ["{", "}"], diff --git a/src/vs/editor/common/model/wordHelper.ts b/src/vs/editor/common/model/wordHelper.ts index 92c969b006..ea15b16036 100644 --- a/src/vs/editor/common/model/wordHelper.ts +++ b/src/vs/editor/common/model/wordHelper.ts @@ -6,7 +6,7 @@ import { IWordAtPosition } from 'vs/editor/common/model'; -export const USUAL_WORD_SEPARATORS = '`~!@#$%^&*()-=+[{]}\\|;:\'",.<>/?'; +export const USUAL_WORD_SEPARATORS = '`~!#$%^&*()-=+[{]}\\|;:\'",.<>/?'; /** * Create a word definition regular expression based on default word separators.