(function(){"use strict";function e(e){var t=e.getCursor(),n=e.getTokenAt(t),r=CodeMirror.innerMode(e.getMode(),n.state);if(r.mode.name!="css")return;if(!/^[\w$_-]*$/.test(n.string)){n={start:t.ch,end:t.ch,string:"",state:n.state,type:null};var i=n.state.stack,s=i&&i.length>0?i[i.length-1]:"";if(n.string==":"||s.indexOf("property")==0)n.type="variable";else if(n.string=="{"||s.indexOf("rule")==0)n.type="property"}if(!n.type)return;var o=CodeMirror.resolveMode("text/css"),u=null;n.type.indexOf("property")==0?u=o.propertyKeywords:n.type.indexOf("variable")==0&&(u=o.valueKeywords);if(!u)return;var a=[];for(var f in u)f.indexOf(n.string)==0&&a.push(f);return{list:a,from:CodeMirror.Pos(t.line,n.start),to:CodeMirror.Pos(t.line,n.end)}}CodeMirror.registerHelper("hint","css",e)})();