| 482 | /////////////////////////////////////////////////////////////////////////// |
| 483 | |
| 484 | function to_mode(stream, state) { |
| 485 | |
| 486 | if (state.ctx.mode && state.ctx.local) { |
| 487 | |
| 488 | if (stream.sol()) { |
| 489 | if (!stream.eatSpace()) change(state, to_normal); |
| 490 | return null; |
| 491 | } |
| 492 | |
| 493 | return state.ctx.mode.token(stream, state.ctx.local); |
| 494 | } |
| 495 | |
| 496 | change(state, to_normal); |
| 497 | return null; |
| 498 | } |
| 499 | |
| 500 | /////////////////////////////////////////////////////////////////////////// |
| 501 | /////////////////////////////////////////////////////////////////////////// |