/=/ Syntax bug #14

merged 1 commit into from Mar 17, 2011


None yet
2 participants

tlewin commented Mar 17, 2011

Fix a little bug, where expression like "a=b=c".split(/=/) breaks the text parser, because the /= is interpreted as operator assignment and the rest as regular expression.

@JEG2 JEG2 merged commit a960c1b into textmate:master Mar 17, 2011


JEG2 commented Mar 17, 2011

Your regex didn't work like you think it did. In English, your expression meant "the beginning of a line, followed by a parenthesis, followed by /=" so it broke matching the real operator.

I fixed it with a followup commit using a look-behind, just in case you are curios.

Thanks for the fix.


tlewin commented Apr 6, 2011

Thanks for explanation!


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment