diff --git a/ide/static/ide/js/autocomplete.js b/ide/static/ide/js/autocomplete.js index ecc77534..ac721cbf 100644 --- a/ide/static/ide/js/autocomplete.js +++ b/ide/static/ide/js/autocomplete.js @@ -148,6 +148,9 @@ CloudPebble.Editor.Autocomplete = new (function() { if(!token || (token.string.replace(/[^a-z0-9_]/gi, '').length < 1 && token.string != '.' && token.string != '->')) { return; } + if (token.type == "comment") { + return; + } } catch(e) { return; }