Skip to content

Commit 46caa3b

Browse files
authored
Exclude @ from word pattern in js/ts (microsoft#165764)
Fixes microsoft#162862 microsoft#148874 Still seems to be working too after this change
1 parent 8642c74 commit 46caa3b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

extensions/javascript/javascript-language-configuration.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
}
108108
},
109109
"wordPattern": {
110-
"pattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>/\\?\\s]+)",
110+
"pattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\@\\!\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>/\\?\\s]+)",
111111
},
112112
"indentationRules": {
113113
"decreaseIndentPattern": {

extensions/typescript-basics/language-configuration.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
}
126126
},
127127
"wordPattern": {
128-
"pattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>/\\?\\s]+)",
128+
"pattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\@\\~\\!\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>/\\?\\s]+)",
129129
},
130130
"indentationRules": {
131131
"decreaseIndentPattern": {

0 commit comments

Comments
 (0)