MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / tokenHeredoc

Function tokenHeredoc

lib/web/CodeMirror/mode/shell/shell.js:140–146  ·  view source on GitHub ↗
(delim)

Source from the content-addressed store, hash-verified

138 };
139
140 function tokenHeredoc(delim) {
141 return function(stream, state) {
142 if (stream.sol() && stream.string == delim) state.tokens.shift()
143 stream.skipToEnd()
144 return "string-2"
145 }
146 }
147
148 function tokenize(stream, state) {
149 return (state.tokens[0] || tokenBase) (stream, state);

Callers 1

tokenBaseFunction · 0.85

Calls 2

solMethod · 0.80
skipToEndMethod · 0.80

Tested by

no test coverage detected