fn scan_ident(&mut self, c: char) -> String {
        let mut res = c.to_string();
        loop {
            // We want whitespace so we know when to stop
            match self._next_char() {
                Some(c) => match c {
                    c if c.is_alphanumeric() || c == '_' => {
                        res.push(c);
                    }
                    _ => {
                        self.putback_char(c);
                        break;
                    }
                },
                None => break,
            };
        }

        res
    }
// Scan an ident by passing in the first char that it starts with
Scan an ident by passing in the first char that it starts with
Scan an ident by passing in the first char that it starts with
fn scan_ident(&mut self, c: char) -> String {
        let mut res = c.to_string();
        loop {
            // We want whitespace so we know when to stop
            match self._next_char() {
                Some(c) => match c {
                    c if c.is_alphanumeric() || c == '_' => {
                        res.push(c);
                    }
                    _ => {
                        self.putback_char(c);
                        break;
                    }
                },
                None => break,
            };
        }
        res
    }
fn scan_ident ( & mut self , c : char ) -> String { let mut res = c . to_string ( ) ; loop { // We want whitespace so we know when to stop match self . _next_char ( ) { Some ( c ) => match c { c if c . is_alphanumeric ( ) || c == '_' => { res . push ( c ) ; } _ => { self . putback_char ( c ) ; break ; } } , None => break , } ; } res }
Scan an ident by passing in the first char that it starts with
Scan an ident by passing in the first char that it starts with
&mut self
c
char