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

Function eatCharacter

static/editor.md/lib/codemirror/mode/clojure/clojure.js:113–124  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

111
112 // Eat character that starts after backslash \
113 function eatCharacter(stream) {
114 var first = stream.next();
115 // Read special literals: backspace, newline, space, return.
116 // Just read all lowercase letters.
117 if (first && first.match(/[a-z]/) && stream.match(/[a-z]+/, true)) {
118 return;
119 }
120 // Read unicode character: \u1000 \uA0a1
121 if (first === "u") {
122 stream.match(/[0-9a-z]{4}/i, true);
123 }
124 }
125
126 return {
127 startState: function () {

Callers 1

clojure.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected