Lines Matching refs:section
31 var section = parser.parseUntil('foo.bar("%>").baz%> bing bong', '%>');
32 assert(section.start === 0);
33 assert(section.end === 17); // exclusive end of string
34 assert(section.src = 'foo.bar("%>").baz');
36 var section = parser.parseUntil('<%foo.bar("%>").baz%> bing bong', '%>', {start: 2});
37 assert(section.start === 2);
38 assert(section.end === 19); // exclusive end of string
39 assert(section.src = 'foo.bar("%>").baz');
42 var section = parser.parseUntil('#[p= [1, 2][i]]', ']', {start: 2})
43 assert(section.start === 2);
44 assert(section.end === 14); // exclusive end of string
45 assert(section.src === 'p= [1, 2][i]')
50 var section = parser.parseUntil('#[p= [1, 2][i]]', '}', {start: 2, ignoreNesting: true})
51 assert(section.start === 2);
52 assert(section.end === 10); // exclusive end of string
53 assert(section.src === 'p= [1, 2')
169 To see the difference between the new and old behaviors, see the "Usage" section earlier.