(stream, state)
| 402 | return slimAttribute(stream, state); |
| 403 | } |
| 404 | function slimAttribute(stream, state) { |
| 405 | if (stream.match(/^([\[\{\(])/)) { |
| 406 | return startAttributeWrapperMode(state, closing[RegExp.$1], slimAttribute); |
| 407 | } |
| 408 | if (stream.match(attributeNameRegexp)) { |
| 409 | state.tokenize = slimAttributeAssign; |
| 410 | return "slimAttribute"; |
| 411 | } |
| 412 | if (stream.peek() == '*') { |
| 413 | stream.next(); |
| 414 | state.tokenize = startRubySplat(slimContent); |
| 415 | return null; |
| 416 | } |
| 417 | return slimContent(stream, state); |
| 418 | } |
| 419 | function slimAttributeAssign(stream, state) { |
| 420 | if (stream.match(/^==?/)) { |
| 421 | state.tokenize = slimAttributeValue; |
no test coverage detected