Fix open/close delim position check
The check to see if a delim was between 2 others was wrong and caused some errors, with more open styles than close ones. This also allows a close delim to be in another line than its open delim as long as they're inside the same block.