diff options
author | Matt Bierner <matb@microsoft.com> | 2022-11-08 02:53:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-08 02:53:11 +0300 |
commit | 46caa3b4901bb89b91a7063b57ce394d99ce203f (patch) | |
tree | 3b9c51fdf1b7a5c391b9a8f28c662f364ba15b4b /extensions | |
parent | 8642c7447737f5dbd718dbf773cb7d0c447e83a5 (diff) |
Exclude `@` from word pattern in js/ts (#165764)
Fixes #162862
#148874 Still seems to be working too after this change
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/javascript/javascript-language-configuration.json | 2 | ||||
-rw-r--r-- | extensions/typescript-basics/language-configuration.json | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/extensions/javascript/javascript-language-configuration.json b/extensions/javascript/javascript-language-configuration.json index 72997cc3ecd..abfef6e8c4c 100644 --- a/extensions/javascript/javascript-language-configuration.json +++ b/extensions/javascript/javascript-language-configuration.json @@ -107,7 +107,7 @@ } }, "wordPattern": { - "pattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>/\\?\\s]+)", + "pattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\@\\!\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>/\\?\\s]+)", }, "indentationRules": { "decreaseIndentPattern": { diff --git a/extensions/typescript-basics/language-configuration.json b/extensions/typescript-basics/language-configuration.json index 739f085339e..e420bc3a995 100644 --- a/extensions/typescript-basics/language-configuration.json +++ b/extensions/typescript-basics/language-configuration.json @@ -125,7 +125,7 @@ } }, "wordPattern": { - "pattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>/\\?\\s]+)", + "pattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\@\\~\\!\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>/\\?\\s]+)", }, "indentationRules": { "decreaseIndentPattern": { |