This commit is contained in:
parent
8375ae1130
commit
f74ee1cac4
|
@ -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});
|
||||||
|
|
|
@ -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;}
|
||||||
|
|
Loading…
Reference in New Issue