Hi, I'm modifying the default actionscript bundle and I have a regex
question that I haven't been able to figure out.
I want to match a function declaration, but I don't want to capture
the arguments of the function. In other words, in a function like this:
public function addItem(name: String, item: MenuItem): Void {
// ...
}
I want to color
"addItem(" and ")"
but not
"name: String, item: MenuItem
Is this possible in one regex expression? Is there some way to match
something by looking for a leading (or trailing) indicator without
including the indicator in the match? In other words... something like:
[in pseudocode] find ")" preceded by "function [a-zA-Z_]* ( ^)"
I'm currently using this regex to successfully capture the whole thing:
match = "\\b(function)\\s+([a-zA-Z_]\\w*)\\s*\\([^\\)]*\\)";
Thanks for the help!
Ed
Hello! Who is the maintainer of the bundle for Markdown? Looks like
he is missing from the README in svn.
I noticed the regexp for emphasis
match = "[*]([^\\\\*]|\\\\.)*?[*]";
causes the engine to beautify the bulleted list
* normal *emph*.
with " normal " in italics instead of "emph". Do those TM regexps
support some sort of precedence? Do they supoprt look-behind assertions?
In addition, the regexp for itemized lists looks too weak:
begin = "^\\s*[*+-]";
According to the current spec it would be something like:
begin = "^ {0,3}[*+-][ \\t]";
-- fxn
I noticed the following while playing with the markdown bundle. Seems
to me like a bug when changing a language that is included in the
current language for a document.
1) Open an empty document, write some stuff (including some inline
markdown like emphasis) and select markdown as a language.
2) Make changes to the inline markdown language, press format and
test. They are not reflected in the text.
3) Opening a new file, copying the text over, and making the language
in the new file markdown reflects the changes. The original file
still does not show any difference.
4) Changing the language of the original file to LaTeX, and then back
to markdown doesn't fix it either.
5) Changing the language of the original file to Inline markdown, and
then back to markdown still leaves it bad.
Haris
Tiger has a new feature in Cocoa apps. The dictionary feature. I
had thought that TextMate was Cocoa. (To be honest, I haven't looked
that closely). Out of curiosity when I was using the dictionary
feature, which is activated with command-control-d, I noticed that it
did not do anything. Is this explicitly disabled in TextMate, or is
there a key-binding that I haven't found yet that masks the system
key-binding.
I'm using b12 and have relatively new bundles.
--
Robert M. Zigweid http://robert.zigweid.net
rzigweid(a)zigweid.net
Just wondering if this is a bug or the expected behavior. I currently
have open the theme editor, and bundle editor, and a document. If I
press Cmd-` successively, the windows come in front in the following
order:
document - bundle - document - theme - document - bundle - ....
I would have expected
document - bundle - theme - document - bundle - .....
If I have two documents open, the sequence of events is:
document1 - bundle - document1 - theme - document1 - document2 -
bundle - document 2 - theme - document2 - document1 - ...
This certainly doesn't feel right, and it takes forever to get from
document1 to document2.
Haris
Hello,
I'm a Windows->MAC switcher and have tried several source code
editors. I was very charmed by TextMate! ;-))
Now my question. Is there anyone who has the configuration files for
XBase, dBase or CA-Clipper language Syntax Highlighting?
Thank you!
Best regards
--
Patrick Mast,
http://www.PatrickMast.com
Is the TextMate service shortcut still command-esc? I use Quicksilver,
and the shortcut conflicts with "Send to Quicksilver".
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Searched the list for this and went through the Preferences and menus
and couldn't find anything about this problem.. so I apologize if
it's an easy RTFM answer!
Since upgrading to the latest TextMate, I've noticed that whenever I
save, the screen jumps to centralize the row that the cursor is
currently on. Why? This is driving me nuts because I'm always hitting
Cmd+S (usually without thinking) every now and then while I'm
developing and the jump jars my thought process. b5 did not do this.
So.. how can I turn this off?
Thanks in advance!
Peter Cooper
I write a LOT of LaTeX documents, and as I was working on the class
for one of them, I've noticed that when trying to fix up some braces
({}), TextMate will slam the CPU on my iMac G5 to 100% for 15-20
seconds, before continuing. Here's a little snip from what I was
trying to fix:
\newcommand{\tla}[1]{{\scshape {\MakeLowercase{#1}}}}
Not very complex, but when I added the last closing brace, it went
wonky. I had thought in the past that it wouldn't come out, so I'd
kill it, but this time, I just let it run, and eventually it fixed
itself.
I tried switching to plain text, and that helped, so it seems to be
something in the way the language pack is written. Any thoughts?
Chris
--
| Christopher Petrilli
| petrilli(a)gmail.com