MCPcopy Create free account
hub / github.com/PerroEngine/Perro / skip_ws

Method skip_ws

perro_source/runtime_project/perro_scene/src/lexer.rs:49–53  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

47pub struct LexError {
48 pub kind: LexErrorKind,
49 pub span: Span,
50}
51
52impl fmt::Display for LexError {
53 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
54 let message = match self.kind {
55 LexErrorKind::MalformedNumber => "malformed number".to_string(),
56 LexErrorKind::UnknownCharacter(c) => format!("unknown character `{c}`"),

Callers 1

next_tokenMethod · 0.45

Calls 1

bumpMethod · 0.45

Tested by

no test coverage detected