We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c934872 commit 16fd65aCopy full SHA for 16fd65a
src/states/EXPRESSION.ts
@@ -226,7 +226,7 @@ function buildOperatorPattern(isConcise: boolean) {
226
const binary =
227
"[*%<&^|?:]" + // Any of these characters can always continue an expression
228
"|=[=>]" + // We only continue after an equals if it is => or ==
229
- "|/[^*/>]" + // We only continue after a forward slash if it isn't //, /* or />
+ "|/(?:\\b|\\s)" + // We only continue after a forward slash if it isn't //, /* or />
230
"|\\.(?=\\s)" + // We only continue after a period if it's followed by a space
231
"|\\bin(?:stanceof)(?=\\s+[^=/,;:>])"; // We only continue after word operators (instanceof/in) when they are not followed by a terminator
232
const unary =
0 commit comments