(stream, state)
| 457 | } |
| 458 | |
| 459 | function dot(stream, state) { |
| 460 | if (stream.eat('.')) { |
| 461 | var innerMode = null; |
| 462 | if (state.lastTag === 'script' && state.scriptType.toLowerCase().indexOf('javascript') != -1) { |
| 463 | innerMode = state.scriptType.toLowerCase().replace(/"|'/g, ''); |
| 464 | } else if (state.lastTag === 'style') { |
| 465 | innerMode = 'css'; |
| 466 | } |
| 467 | setInnerMode(stream, state, innerMode); |
| 468 | return 'dot'; |
| 469 | } |
| 470 | } |
| 471 | |
| 472 | function fail(stream) { |
| 473 | stream.next(); |
no test coverage detected