Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better list substitution #258

Merged
merged 2 commits into from
Jun 30, 2017
Merged

Better list substitution #258

merged 2 commits into from
Jun 30, 2017

Conversation

mstemm
Copy link
Contributor

@mstemm mstemm commented Jun 30, 2017

Improve list substitution so a list name foo doesn't get inserted into a string my_foo. Also improve some unit tests.

mstemm added 2 commits June 30, 2017 15:11
When performing list substitution, only replace a list name when it is
surrounded by whitespace or expected punctuation characters. Lua
patterns don't have a notion of this-or-that patterns e.g. (^|abc), so
we have 3 versions of the substitution depending on whether he list name
occurs in the beginning, middle, or end of a string.

This fixes #197.
Add new unit tests to check that list substitution is working as
expected, with test cases for the list substitution occurring at the
beginning, middle, and end of a condition.

Also add tests that verify that overrides on list/macro/rule names
always occur in order.
@mstemm mstemm merged commit 3349dec into dev Jun 30, 2017
@mstemm mstemm deleted the better-list-substitution branch June 30, 2017 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant