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

Function comment

static/editor.md/lib/codemirror/mode/sass/sass.js:48–65  ·  view source on GitHub ↗
(indentation, multiLine)

Source from the content-addressed store, hash-verified

46 }
47 }
48 function comment(indentation, multiLine) {
49 return function(stream, state) {
50 if (stream.sol() && stream.indentation() <= indentation) {
51 state.tokenizer = tokenBase;
52 return tokenBase(stream, state);
53 }
54
55 if (multiLine && stream.skipTo("*/")) {
56 stream.next();
57 stream.next();
58 state.tokenizer = tokenBase;
59 } else {
60 stream.skipToEnd();
61 }
62
63 return "comment";
64 };
65 }
66
67 function buildStringTokenizer(quote, greedy) {
68 if (greedy == null) { greedy = true; }

Callers 1

tokenBaseFunction · 0.70

Calls 1

tokenBaseFunction · 0.70

Tested by

no test coverage detected