Fix LPeg precedence for Lua dot operators #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi Steve,
I saw your LuaMacro 2.4 announcement on luarocks-dev:
I seem to remember taking this shortcut in my original Lua lexer and indeed, I fixed the same bug in LXSH. Sorry about that :-). Anyway, I was curious how you changed it and think I found a minor bug in the change: The matching of the
.
operator prevents the..
operator from ever being matched. Here's the explanation I wrote in the commit message:In the 10 minutes I spend on this I didn't figure out how to install LuaMacro + run the tests (I've not used LuaMacro before), so please run them before merging my change to make sure I didn't break them with my suggested change :-].