Yet Another Rust Yaml
Find a file
Paul Stemmet 26cd16403b lib/scanner: add tag scan to next_token
An unfortunate glitch in the compiler requires that I use a match
statement over fall through if guards, as the borrow checker is to
restrictive, and will not allow the code to compile despite being
clearly correct.

This required me to lift the stream checks into next_token, which means
we now have a redundant check.  Hopefully in the future the borrow
checker will become smarter.

This commit also refactors stream checks to use a const identifier shared
between the call site in next_token and the function proper, and misc
changes to Scanner.eat_whitespace
2021-06-29 16:01:11 +01:00
.github/workflows ci/prtasks: use install over mv 2021-06-02 14:52:43 +00:00
docs docs/flow-logic: notes from scalar line joining 2021-06-23 21:51:33 +01:00
src lib/scanner: add tag scan to next_token 2021-06-29 16:01:11 +01:00
.gitignore git: ignore .vim/ 2021-06-23 21:51:33 +01:00
.rustfmt.toml ci/fmt: move rustfmt.toml to repo root 2021-06-22 21:14:34 +00:00
Cargo.lock lib/deps: add atoi 2021-06-06 08:44:15 +01:00
Cargo.toml lib/deps: add atoi 2021-06-06 08:44:15 +01:00