[javascript mode] Properly handle exclamation marks in class fields
This commit is contained in:
parent
472b458a31
commit
c7aeed9d69
|
@ -799,6 +799,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
|
|||
if (value == "@") return cont(expression, classBody)
|
||||
}
|
||||
function classfield(type, value) {
|
||||
if (value == "!") return cont(classfield)
|
||||
if (value == "?") return cont(classfield)
|
||||
if (type == ":") return cont(typeexpr, maybeAssign)
|
||||
if (value == "=") return cont(expressionNoComma)
|
||||
|
|
Loading…
Reference in New Issue