Hi,
I would like to report a minor bug. When editing a *.rb file, text in quotations (double or single) appears green. I think there must be a parser in TextMate that detects quotes, which sets off some flag indicating that we're within quotes, which then causes that text to be displayed as green. However, I think instead of detecting all quotes to set off the flag, Allan should detect non-escaped quotes.
For example,
open("http://www.myspace.com/%22).read.match /<form action="(.*?)"/
# Code from here on down appears green as though it were still within quotes even though it was an escaped quote inside of a regular expression context.
Okay, that's my two-cent contribution to the world. I hope it really is worth at least two cents.
Great program! Keep up the great work!
David :)
On Sep 20, 2006, at 1:40 AM, David Beckwith wrote:
Hi,
open("http://www.myspace.com/%22).read.match /<form action="(.*?)"/
The problem is not that the escaped quotes are not treated properly, but that the regular expression is not recognized as such. A minor bug in the bundle, that hopefully someone will be able to sort out soon. For now, if you write it instead as:
open("http://www.myspace.com/%22).read.match(/<form action="(.*?)"/)
you should have no problems.
David :)
Haris
thanks that worked!
On 9/19/06, Charilaos Skiadas skiadas@hanover.edu wrote:
On Sep 20, 2006, at 1:40 AM, David Beckwith wrote:
Hi,
open("http://www.myspace.com/%22).read.match /<form action="(.*?)"/
The problem is not that the escaped quotes are not treated properly, but that the regular expression is not recognized as such. A minor bug in the bundle, that hopefully someone will be able to sort out soon. For now, if you write it instead as:
open("http://www.myspace.com/%22).read.match(/<form action="(.*?)"/)
you should have no problems.
David :)
Haris
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
I also added match to the language grammar, so it will work in the future without parentheses.
On 20/9/2006, at 8:31, David Beckwith wrote:
thanks that worked!
On 9/19/06, Charilaos Skiadas skiadas@hanover.edu wrote:
On Sep 20, 2006, at 1:40 AM, David Beckwith wrote:
Hi,
open("http://www.myspace.com/%22).read.match /<form action="(.*?)
"/
The problem is not that the escaped quotes are not treated properly, but that the regular expression is not recognized as such. A minor bug in the bundle, that hopefully someone will be able to sort out soon. For now, if you write it instead as:
open("http://www.myspace.com/%22).read.match(/<form action="(.*?)"/)
you should have no problems.
David :)
Haris
_ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Wow! I contributed to the world!
On 9/19/06, Allan Odgaard throw-away-1@macromates.com wrote:
I also added match to the language grammar, so it will work in the future without parentheses.
On 20/9/2006, at 8:31, David Beckwith wrote:
thanks that worked!
On 9/19/06, Charilaos Skiadas skiadas@hanover.edu wrote:
On Sep 20, 2006, at 1:40 AM, David Beckwith wrote:
Hi,
open("http://www.myspace.com/%22).read.match /<form action="(.*?)
"/
The problem is not that the escaped quotes are not treated properly, but that the regular expression is not recognized as such. A minor bug in the bundle, that hopefully someone will be able to sort out soon. For now, if you write it instead as:
open("http://www.myspace.com/%22).read.match(/<form action="(.*?)"/)
you should have no problems.
David :)
Haris
_ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate