MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / state_attr_end

Function state_attr_end

MathBox/mathbox-bundle.js:47533–47585  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47531 }
47532
47533 function state_attr_end() {
47534 if(!gathered.length && !quote) {
47535 quote = /['"]/.test(c) ? c : null
47536
47537 if(quote) {
47538 return
47539 }
47540 }
47541
47542 if(quote) {
47543 if(!escaped && c === quote) {
47544 quote = null
47545
47546 return
47547 }
47548
47549 if(c === '\\') {
47550 if(escaped) {
47551 gathered.push(c)
47552 }
47553
47554 escaped = !escaped
47555
47556 return
47557 }
47558
47559 escaped = false
47560 gathered.push(c)
47561
47562 return
47563 }
47564
47565 state_gather(true)
47566
47567 if(state !== READY) {
47568 return
47569 }
47570
47571 stream.queue({
47572 type: ATTR
47573 , data: {
47574 lhs: lhs
47575 , rhs: gathered.join('')
47576 , cmp: cmp
47577 }
47578 })
47579
47580 state = READY
47581 lhs = rhs = cmp = null
47582 gathered.length = 0
47583
47584 return
47585 }
47586
47587 function state_gather(quietly) {
47588 if(/[^\d\w\-_]/.test(c) && !escaped) {

Callers 1

ondataFunction · 0.70

Calls 1

state_gatherFunction · 0.70

Tested by

no test coverage detected