[fine] Type testing with probes and reporting
I'm proud of the test harness here actually. Also fix a bug in checking!
This commit is contained in:
parent
c0f40aa512
commit
618e0028d3
10 changed files with 192 additions and 78 deletions
|
|
@ -429,7 +429,11 @@ impl<'a> Tokens<'a> {
|
|||
};
|
||||
|
||||
match c {
|
||||
' ' | '\t' | '\r' | '\n' => self.whitespace(pos),
|
||||
' ' | '\t' | '\r' => self.whitespace(pos),
|
||||
'\n' => {
|
||||
self.lines.add_line(pos);
|
||||
self.whitespace(pos)
|
||||
}
|
||||
'{' => self.token(pos, TokenKind::LeftBrace),
|
||||
'}' => self.token(pos, TokenKind::RightBrace),
|
||||
'[' => self.token(pos, TokenKind::LeftBracket),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue