kurtlawrence / papyrus

(Rust) repl
MIT License
440 stars 14 forks source link

Fixed a rustfmt tab-related bug, updated dependencies and fixed breaking changes to their APIs #105

Open NotGyro opened 3 years ago

NotGyro commented 3 years ago

Hello, this set of commits fixes a few issues - most prominently, reduce_indent() expects blocks to be indented by four tabs in order to work properly, but setting .rustfmt.toml with "hard_tabs = true" .rustfmt.toml in a project which embeds papyrus would cause blocks to be indented with a \t, breaking this method.

In addition, the versions of several dependencies were bumped. This broke a few things, but most notably parse_program() searches for the string "LexError" to detect a certain result while that syn::parse_str() error is now displayed as "lex error". This case is now checked for.