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

Function javaScriptArguments

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

Source from the content-addressed store, hash-verified

120 }
121 }
122 function javaScriptArguments(stream, state) {
123 if (state.javaScriptArguments) {
124 if (state.javaScriptArgumentsDepth === 0 && stream.peek() !== '(') {
125 state.javaScriptArguments = false;
126 return;
127 }
128 if (stream.peek() === '(') {
129 state.javaScriptArgumentsDepth++;
130 } else if (stream.peek() === ')') {
131 state.javaScriptArgumentsDepth--;
132 }
133 if (state.javaScriptArgumentsDepth === 0) {
134 state.javaScriptArguments = false;
135 return;
136 }
137
138 var tok = jsMode.token(stream, state.jsState);
139 return tok || true;
140 }
141 }
142
143 function yieldStatement(stream) {
144 if (stream.match(/^yield\b/)) {

Callers 1

nextTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected