advanceNumbersAndSeparators method

void advanceNumbersAndSeparators()

Implementation

void advanceNumbersAndSeparators() {
  String? lastRead;
  while ((_isNumeric(_peek) || _peek == '_') && !_isAtEnd) {
    lastRead = _peek;
    _advance();
  }

  if (lastRead == '_') {
    _errorHandler?.emit(
      NumberEndingWithSeparatorError(offset: _current - 1),
    );
  }
}