Closed usr42 closed 6 years ago
@meekrosoft I just solved the merge conflicts.
@meekrosoft I've just solved the merge conflicts again. Can the pull request be merged. Do you like the idea of the changes?
@meekrosoft The merge conflicts are solved again.
I refactored some things. If you don't like some of the refactorings, I can revert the corresponding commit. These are the refactorings:
Encapsulate pushd and popd inside of indent function. Indent has a block, so instead of
you now write
This enforces a corresponding popd to each pushd and you can use indentation support of a text editor for the ruby code.
Add putd_backslash which automatically adds a backslash at the end of a line of the generated code for multiline macros.
can now be written with
In my opinion this improves readability and enforces code style for the generated code.
Replace
putd ""
byputs
This generates empty lines instead of lines full of spaces.Remove dead code