(stream, state)
| 325 | } |
| 326 | |
| 327 | function filter(stream, state) { |
| 328 | if (stream.match(/^:([\w\-]+)/)) { |
| 329 | var innerMode; |
| 330 | if (config && config.innerModes) { |
| 331 | innerMode = config.innerModes(stream.current().substring(1)); |
| 332 | } |
| 333 | if (!innerMode) { |
| 334 | innerMode = stream.current().substring(1); |
| 335 | } |
| 336 | if (typeof innerMode === 'string') { |
| 337 | innerMode = CodeMirror.getMode(config, innerMode); |
| 338 | } |
| 339 | setInnerMode(stream, state, innerMode); |
| 340 | return 'atom'; |
| 341 | } |
| 342 | } |
| 343 | |
| 344 | function code(stream, state) { |
| 345 | if (stream.match(/^(!?=|-)/)) { |
no test coverage detected