(stream, state)
| 488 | }; |
| 489 | } |
| 490 | function slimContent(stream, state) { |
| 491 | if (stream.match(/^==?/)) { |
| 492 | state.tokenize = ruby; |
| 493 | return "slimSwitch"; |
| 494 | } |
| 495 | if (stream.match(/^\/$/)) { // tag close hint |
| 496 | state.tokenize = slim; |
| 497 | return null; |
| 498 | } |
| 499 | if (stream.match(/^:/)) { // inline tag |
| 500 | state.tokenize = slimTag; |
| 501 | return "slimSwitch"; |
| 502 | } |
| 503 | startHtmlMode(stream, state, 0); |
| 504 | return state.tokenize(stream, state); |
| 505 | } |
| 506 | |
| 507 | var mode = { |
| 508 | // default to html mode |
no test coverage detected