summaryrefslogtreecommitdiffstats
path: root/src/poem/elements/verse/git@git.dwarvish.org:dwarvish.git
diff options
context:
space:
mode:
authorRory Dudley2024-04-04 00:47:24 -0600
committerRory Dudley2024-04-04 00:47:24 -0600
commit9b3e4dd71ec1491e3580e079e9be1b42117a74c9 (patch)
tree6bf49aee7b725e87f34b124eb20def50e475c26c /src/poem/elements/verse/git@git.dwarvish.org:dwarvish.git
parentbeb11773f6ac17d0b97f908311ac5989e1a0a5ae (diff)
downloaddwarvish-9b3e4dd71ec1491e3580e079e9be1b42117a74c9.tar.gz
Add better support for aliases
Make sure to interpret alias values as their own poems, since aliases can be fairly complex.
Notes
Notes: Previously, I was doing a simple find and replace for aliases within each verse. However, aliases can be fairly complex, containing their own range of meters, commands, and io operations. This could cause problems, since a verse should never have, for instance, a pipe (`|`) in the middle of it. This patch fixes it, so that we iterate once through the poem, generating a new poem based on aliases that are found. In order to avoid two loops in the recite() function, it might make sense to offload handling aliases to read().
Diffstat (limited to 'src/poem/elements/verse/git@git.dwarvish.org:dwarvish.git')
0 files changed, 0 insertions, 0 deletions