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

Function tokenBase

static/editor.md/lib/codemirror/mode/solr/solr.js:76–86  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

74 }
75
76 function tokenBase(stream, state) {
77 var ch = stream.next();
78 if (ch == '"')
79 state.tokenize = tokenString(ch);
80 else if (isOperatorChar.test(ch))
81 state.tokenize = tokenOperator(ch);
82 else if (isStringChar.test(ch))
83 state.tokenize = tokenWord(ch);
84
85 return (state.tokenize != tokenBase) ? state.tokenize(stream, state) : null;
86 }
87
88 return {
89 startState: function() {

Callers

nothing calls this directly

Calls 3

tokenOperatorFunction · 0.85
tokenWordFunction · 0.85
tokenStringFunction · 0.70

Tested by

no test coverage detected