MCPcopy Create free account
hub / github.com/TruthHun/BookStack / wordAsValue

Function wordAsValue

static/editor.md/lib/codemirror/mode/css/css.js:143–151  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

141 // Parser
142
143 function wordAsValue(stream) {
144 var word = stream.current().toLowerCase();
145 if (valueKeywords.hasOwnProperty(word))
146 override = "atom";
147 else if (colorKeywords.hasOwnProperty(word))
148 override = "keyword";
149 else
150 override = "variable";
151 }
152
153 var states = {};
154

Callers 1

css.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected