(stream)
| 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 () { |