Updated Classic ASP TextMate Bundle
I downloaded this TextMate bundle a while ago for ASP -- so I could have code coloring. However I've found that I really need the symbols to be correctly identified. So I updated the bundle to include public & private methods of classes in the list of symbols. I also added a permanent redirect snippet. (I have to write these frequently since mod_rewrite isn't available to me)
Download my version of the bundle.
Note: The original bundle is available on the MacroMates bundles for the 1.0.2 release page. It was created by Rich Barton and based on the work of Justin French, Sune Foldager and Allan Odgaard on the PHP scripting dictionary.
Comments (6)
evpozdniakov
thank you!
Kevin S
I found a bug with the way you're detecting comments in this bundle
Specifically a line like:
' foo = ""
Is not flagged as a comment, since it contains the character >.
Here's an updated entry for the comments which fixes this issue:
{ name = 'comment.line.apostrophe.asp';
match = "(')(.(?!(%>|\n|\r\n|$)))*.";
captures = { 1 = { name = 'punctuation.definition.comment.asp'; }; };
},
It was bugging me a lot that the syntax highlighting was broken, while trying to comment out lines that contained HTML, or expressions comparing numbers.
Thanks for the bundle!
Kevin S
Whoops, It seems my HTML was stripped out.
I meant a line like:
‘ foo = “
”
Kevin S
Heh.
Found a small bug in my revised code, where a single quote on a line with no characters following wasn't marked as a comment
Revised version:
stev0
Excellent, many thanks.
Thiago C
Thanks!!