This commit is contained in:
Liang Ding 2014-11-18 09:31:46 +08:00
parent 8375ae1130
commit f74ee1cac4
2 changed files with 6 additions and 1 deletions

View File

@ -371,6 +371,11 @@ var editors = {
}); });
CodeMirror.commands.autocompleteAfterDot = function (cm) { CodeMirror.commands.autocompleteAfterDot = function (cm) {
var token = cm.getTokenAt(cm.getCursor());
if ("comment" === token.type) {
return;
}
setTimeout(function () { setTimeout(function () {
if (!cm.state.completionActive) { if (!cm.state.completionActive) {
cm.showHint({hint: CodeMirror.hint.go, completeSingle: false}); cm.showHint({hint: CodeMirror.hint.go, completeSingle: false});

View File

@ -16,7 +16,7 @@
.cm-s-wide span.cm-meta {color: rgb(98,143,181);} .cm-s-wide span.cm-meta {color: rgb(98,143,181);}
.cm-s-wide span.cm-keyword { color: rgb(0,0,230); } .cm-s-wide span.cm-keyword { color: rgb(0,0,230); }
.cm-s-wide span.cm-atom {color: #219;} .cm-s-wide span.cm-atom {color: rgb(153,51,204);}
.cm-s-wide span.cm-number {color: #B35E4D;} .cm-s-wide span.cm-number {color: #B35E4D;}
.cm-s-wide span.cm-def {color: #00f;} .cm-s-wide span.cm-def {color: #00f;}
.cm-s-wide span.cm-variable {color: black;} .cm-s-wide span.cm-variable {color: black;}