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 708084a commit ae45e2bCopy full SHA for ae45e2b
mode/javascript/javascript.js
@@ -12,7 +12,7 @@
12
"use strict";
13
14
function expressionAllowed(stream, state, backUp) {
15
- return /^(?:operator|sof|keyword c|case|new|export|[\[{}\(,;:]|=>)$/.test(state.lastType) ||
+ return /^(?:operator|sof|keyword c|case|new|export|default|[\[{}\(,;:]|=>)$/.test(state.lastType) ||
16
(state.lastType == "quasi" && /\{\s*$/.test(stream.string.slice(0, stream.pos - (backUp || 0))))
17
}
18
0 commit comments