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

Function tokenString

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

Source from the content-addressed store, hash-verified

71 }
72 function tokenCommentToEOF(stream){return stream.skipToEnd(),"comment";}
73 function tokenString(stream,state){
74 var escaped=false,next,end=false;
75 while((next=stream.next())){
76 if(next=="\""&&!escaped){end=true;break;}
77 escaped=!escaped&&next=="\\";
78 }
79 if(end)state.tokenize=tokenBase;
80 return"string";
81 }
82 function pushContext(state,type,col){state.context={prev:state.context,indent:state.indent,col:col,type:type};}
83 function popContext(state){state.indent=state.context.indent;state.context=state.context.prev;}
84 return{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected