Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Nov 28, 2012
1 parent eaad14e commit 1d06c05
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mode/http/http.js
Expand Up @@ -59,21 +59,21 @@ CodeMirror.defineMode("http", function() {
}
}

function header(stream, state) {
function header(stream) {
if (stream.sol() && !stream.eat(/[ \t]/)) {
if (stream.match(/^.*?:/)) {
return "atom";
return "atom";
} else {
stream.skipToEnd();
return "error";
stream.skipToEnd();
return "error";
}
} else {
stream.skipToEnd();
return "string";
}
}

function body(stream, state) {
function body(stream) {
stream.skipToEnd();
return null;
}
Expand Down

0 comments on commit 1d06c05

Please sign in to comment.