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

[haskell mode] Make sure unfinished strings have token type string

To make closebrackets work with this mode

Closes #4277
parent 1233299f
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ CodeMirror.defineMode("haskell", function(_config, modeConfig) {
if (source.eat('\'')) {
return "string";
}
return "error";
return "string error";
}
if (ch == '"') {
......@@ -166,7 +166,7 @@ CodeMirror.defineMode("haskell", function(_config, modeConfig) {
}
}
setState(normal);
return "error";
return "string error";
}
function stringGap(source, setState) {
......@@ -194,7 +194,7 @@ CodeMirror.defineMode("haskell", function(_config, modeConfig) {
"module", "newtype", "of", "then", "type", "where", "_");
setType("keyword")(
"\.\.", ":", "::", "=", "\\", "\"", "<-", "->", "@", "~", "=>");
"\.\.", ":", "::", "=", "\\", "<-", "->", "@", "~", "=>");
setType("builtin")(
"!!", "$!", "$", "&&", "+", "++", "-", ".", "/", "/=", "<", "<=", "=<<",
......
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