summaryrefslogtreecommitdiffhomepage
path: root/android/translations-converter/src/gettext/parser.rs
AgeCommit message (Collapse)AuthorFilesLines
2024-02-27Replace err_derive with thiserrorJoakim Hulthe1-13/+7
`err_derive` is unmaintained and will probably stop working with rust edition 2024. `thiserror` is almost a drop-in replacement. This commit simply replaces all occurences of `derive(err_derive::Error)` with `derive(thiserror::Error)` and fixes the attributes, but the Error and Display impls should be identical.
2023-08-03Migrate translation-converter to err_deriveLinus Färnstrand1-14/+19
2023-01-30Run `cargo clippy --fix` with the new Rust 1.67 preferred formatLinus Färnstrand1-7/+7
2022-12-21Fix rust formattingAlbin1-2/+1
2022-12-21Apply more clippy fixes.Emīls1-3/+1
2021-05-28Fix handling of multi-line messagesJanito Vaqueiro Ferreira Filho1-15/+162
A message string can be split among multiple lines, and this was not properly handled. Now it is handled by separate states that join all the lines it finds related to the message.
2021-05-28Refactor parser into a clearer state machineJanito Vaqueiro Ferreira Filho1-73/+322
Make it more robust, maintainable and readable.
2021-05-28Return errors from parser methodsJanito Vaqueiro Ferreira Filho1-20/+44
Avoid panicking inside of `Parser`.
2021-05-28Move `Parser` into a separate moduleJanito Vaqueiro Ferreira Filho1-0/+138
Prepare for refactoring the parsing logic to improve readability and maintainability.