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

Function tokenLexer

static/editor.md/lib/codemirror/mode/julia/julia.js:249–266  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

247 }
248
249 function tokenLexer(stream, state) {
250 indentInfo = null;
251 var style = state.tokenize(stream, state);
252 var current = stream.current();
253
254 // Handle '.' connected identifiers
255 if (current === '.') {
256 style = stream.match(identifiers, false) ? null : ERRORCLASS;
257 if (style === null && state.lastStyle === 'meta') {
258 // Apply 'meta' style to '.' connected identifiers when
259 // appropriate.
260 style = 'meta';
261 }
262 return style;
263 }
264
265 return style;
266 }
267
268 var external = {
269 startState: function() {

Callers 1

julia.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected