(stream, state)
| 314 | } |
| 315 | |
| 316 | function tag(stream, state) { |
| 317 | var captures; |
| 318 | if (captures = stream.match(/^(\w(?:[-:\w]*\w)?)\/?/)) { |
| 319 | state.lastTag = captures[1].toLowerCase(); |
| 320 | if (state.lastTag === 'script') { |
| 321 | state.scriptType = 'application/javascript'; |
| 322 | } |
| 323 | return 'tag'; |
| 324 | } |
| 325 | } |
| 326 | |
| 327 | function filter(stream, state) { |
| 328 | if (stream.match(/^:([\w\-]+)/)) { |