luaur-ast 0.1.3

Lexer, parser, and AST for Luau (faithful Rust port).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! `void Lexer::nextline()` — Ast/src/Lexer.cpp:393.

use crate::functions::is_newline::is_newline;
use crate::records::lexer::Lexer;

impl Lexer {
    pub fn nextline(&mut self) {
        while self.peekch() != '\0' && self.peekch() != '\r' && !is_newline(self.peekch()) {
            self.consume();
        }

        self.next();
    }
}