(stream, state)
| 74 | } |
| 75 | |
| 76 | function tokenBase(stream, state) { |
| 77 | var ch = stream.next(); |
| 78 | if (ch == '"') |
| 79 | state.tokenize = tokenString(ch); |
| 80 | else if (isOperatorChar.test(ch)) |
| 81 | state.tokenize = tokenOperator(ch); |
| 82 | else if (isStringChar.test(ch)) |
| 83 | state.tokenize = tokenWord(ch); |
| 84 | |
| 85 | return (state.tokenize != tokenBase) ? state.tokenize(stream, state) : null; |
| 86 | } |
| 87 | |
| 88 | return { |
| 89 | startState: function() { |
nothing calls this directly
no test coverage detected