Skip to content
Snippets Groups Projects
Commit 4b29bae2 authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

[javascript mode] Allow void to be a type

Closes #4986
parent 35ce5f10
No related branches found
No related tags found
No related merge requests found
......@@ -558,7 +558,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
}
}
function typeexpr(type, value) {
if (type == "variable") {
if (type == "variable" || value == "void") {
if (value == "keyof") {
cx.marked = "keyword"
return cont(typeexpr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment