Skip to content

/=/ Syntax bug#14

Merged
JEG2 merged 1 commit intotextmate:masterfrom
tlewin:master
Mar 17, 2011
Merged

/=/ Syntax bug#14
JEG2 merged 1 commit intotextmate:masterfrom
tlewin:master

Conversation

@tlewin
Copy link
Contributor

@tlewin 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
Copy link
Contributor

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
Copy link
Contributor Author

tlewin commented Apr 6, 2011

Thanks for explanation!

Regards

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.

2 participants