acceptSingleton method

bool acceptSingleton()

Advances and returns true if current subtag is a singleton.

Implementation

bool acceptSingleton() {
  if (atEnd()) return false;
  if (!_singletonRegExp.hasMatch(_current)) return false;
  advance();
  return true;
}