Lines Matching refs:lexem
35 function subMode(lexem, mode) { argument
43 if (mode.sub_modes[i].beginRe.test(lexem)) {
50 function endOfMode(mode_index, lexem) { argument
51 if (modes[mode_index].end && modes[mode_index].endRe.test(lexem))
54 var level = endOfMode(mode_index - 1, lexem);
60 function isIllegal(lexem, mode) { argument
61 return mode.illegalRe && mode.illegalRe.test(lexem);
167 function startNewMode(mode, lexem) { argument
173 result += escape(lexem) + markup;
177 mode.buffer = lexem;
182 function processModeInfo(buffer, lexem, end) { argument
189 var new_mode = subMode(lexem, current_mode);
192 startNewMode(new_mode, lexem);
197 var end_level = endOfMode(modes.length - 1, lexem);
203 … result += processBuffer(current_mode.buffer + buffer, current_mode) + markup + escape(lexem);
205 result += processBuffer(current_mode.buffer + buffer + lexem, current_mode) + markup;
226 if (isIllegal(lexem, current_mode))