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

Function javaScript

static/editor.md/lib/codemirror/mode/jade/jade.js:105–121  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

103 };
104
105 function javaScript(stream, state) {
106 if (stream.sol()) {
107 // if javaScriptLine was set at end of line, ignore it
108 state.javaScriptLine = false;
109 state.javaScriptLineExcludesColon = false;
110 }
111 if (state.javaScriptLine) {
112 if (state.javaScriptLineExcludesColon && stream.peek() === ':') {
113 state.javaScriptLine = false;
114 state.javaScriptLineExcludesColon = false;
115 return;
116 }
117 var tok = jsMode.token(stream, state.jsState);
118 if (stream.eol()) state.javaScriptLine = false;
119 return tok || true;
120 }
121 }
122 function javaScriptArguments(stream, state) {
123 if (state.javaScriptArguments) {
124 if (state.javaScriptArgumentsDepth === 0 && stream.peek() !== '(') {

Callers 1

nextTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected