Lexer.scan_

An alternative scan method. Profiling shows it's a bit slower.

class Lexer
void
scan_
()
in { assert (text.ptr <= p && p < end); }
out { assert (text.ptr <= t.start && t.start < end, t.kind.toString); assert (text.ptr <= t.end && t.end <= end, t.kind.toString); assert (t.kind != T!"Invalid", t.text); }

Meta