docs: function parseNextToken(template, grammar, stack) {
      grammar.some(function(token) {
        var capture = token.test.exec(template);
  
        // Ignore empty captures.
        if (capture && capture[0]) {
          template = template.replace(token.test, "");
          stack.push({ name: token.name, capture: capture });
          return true;
        }
      });
  
      return template;
    }