Skip to content
Snippets Groups Projects
Commit 825ca000 authored by Markus Bordihn's avatar Markus Bordihn Committed by Marijn Haverbeke
Browse files

[coffeescript mode] Remove disabled code

Removed possible testing and unreachable code to avoid JavaScript
compiler errors:

...
codemirror/mode/coffeescript/coffeescript.js:271: WARNING - unreachable code
    if (false && current === ".") {
...
parent 8a48219a
No related branches found
No related tags found
Loading
......@@ -267,17 +267,6 @@ CodeMirror.defineMode("coffeescript", function(conf, parserConf) {
var style = state.tokenize(stream, state);
var current = stream.current();
// Handle "." connected identifiers
if (false && current === ".") {
style = state.tokenize(stream, state);
current = stream.current();
if (/^\.[\w$]+$/.test(current)) {
return "variable";
} else {
return ERRORCLASS;
}
}
// Handle scope changes.
if (current === "return") {
state.dedent = true;
......
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