Inconsistency? Inconsistency is with your cluttered code. I've found that most people produce code that is completely smashed together with multiple functions on piped lines. If you want this to be cleared up, seperate your code up.
For many, it's easier to read, easier to follow brackets, and easier to debug if there are problems.
Though I do have a problem with nesting at times on my code, I'll be working on that.
This is a word of advice from coding wise

Besides, it behaves just as it should. This is not a bug. As was stated earlier, put a | after the commented part. The comment is supposed to be on a line, not within the code itself. That's just really bad layout.