MCPcopy Index your code
hub / github.com/josdejong/mathjs / tokenTranspose

Function tokenTranspose

examples/code_editor/mathjs-lang.js:72–80  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

70
71 // tokenizers
72 function tokenTranspose(stream, state) {
73 if (!stream.sol() && stream.peek() === "'") {
74 stream.next()
75 state.tokenize = tokenBase
76 return 'operator'
77 }
78 state.tokenize = tokenBase
79 return tokenBase(stream, state)
80 }
81
82 function tokenComment(stream, state) {
83 if (stream.match(/^.*#}/)) {

Callers

nothing calls this directly

Calls 1

tokenBaseFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…