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

Function tokenBlockComment

static/editor.md/lib/codemirror/mode/q/q.js:65–71  ·  view source on GitHub ↗
(stream,state)

Source from the content-addressed store, hash-verified

63 return stream.skipToEnd(),/\/\s*$/.test(stream.current())?(state.tokenize=tokenBlockComment)(stream,state):(state.tokenize=tokenBase),"comment";
64 }
65 function tokenBlockComment(stream,state){
66 var f=stream.sol()&&stream.peek()=="\\";
67 stream.skipToEnd();
68 if(f&&/^\\\s*$/.test(stream.current()))
69 state.tokenize=tokenBase;
70 return"comment";
71 }
72 function tokenCommentToEOF(stream){return stream.skipToEnd(),"comment";}
73 function tokenString(stream,state){
74 var escaped=false,next,end=false;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected