MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / consume_digits

Method consume_digits

aiscript-lexer/src/lib.rs:409–413  ·  view source on GitHub ↗

Helper method to consume consecutive digits

(&mut self)

Source from the content-addressed store, hash-verified

407
408 // Helper method to consume consecutive digits
409 fn consume_digits(&mut self) {
410 while matches!(self.peek(), Some(c) if c.is_ascii_digit()) {
411 self.advance();
412 }
413 }
414
415 // Scans identifiers and keywords
416 fn scan_identifier(&mut self) -> Token<'a> {

Callers 1

scan_numberMethod · 0.80

Calls 1

advanceMethod · 0.80

Tested by

no test coverage detected