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

Function tokenLineComment

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

Source from the content-addressed store, hash-verified

60 return"error";
61 }
62 function tokenLineComment(stream,state){
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();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected