Hi
I am trying to add a clause to my PHP language grammar that only
affects a variable between square brackets/braces, for example it
would match $bar from the following
$foo[$bar]
The language block I have is this
var_index = {
name = 'variable.other.index.php';
match = '(?x)
\[(\$+)[a-zA-Z_\x{7f}-\x{ff}]
[a-zA-Z0-9_\x{7f}-\x{ff}]*?\b\]';
captures = { 1 = { name =
'punctuation.definition.variable.php'; }; };
};
The problem is that it affects the square brackets/braces as well as
the variable inside them. How do I alter it to only affect the
variable and not the brackets/braces?
Thanks in advance for any help
Teifion
––––––––––––––––––
http://woarl.com/blog
Hi,
We have to buy Textmate (2 licences).
I've red about a "2.0" version.
Is there a release date ?
If we buy 1.5 today, could we have for free the new version ?
Thanks
--
Nicolas (Leopard)
Hi,
The Git bundle is great, but the GUI tools don't seem to be working.
View Branch History with Gitk does nothing, though Gitk works from the
command line.
View history with Gitnub launches two empty GitNub windows. Again nub
works properly from the command line.
Git Gui does nothing as well. Fine on the command line.
I thought it might be a path issue, but running echo $PATH inside of
TM with ctrl R shows that the paths are fine...
Others on the irc have the same problem.
Best, Mark
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I just created a bundle for literate programming in cweb. You can
find the bundle here:
git://github.com/a-priori/cweb-tmbundle.githttp://github.com/a-priori/cweb-tmbundle
Currently, the bundle only has a language definition. Let me know
what you think of it, and send me any suggestions you have for how to
improve it.
Regards,
Michael Melanson
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
iD8DBQFID4fS5/wM81IeisIRAuwvAKCcOiRuZxdoLnuqD5uxb1A0W//tZwCdG45p
8e3J2EHrif3NwBC04tCwzXs=
=4vPH
-----END PGP SIGNATURE-----
Hi all,
Sorry if this has been asked before, but the instructions on the
textmate website don't work for me. If I open up bundle editor and try
to drag the bundle called "html" into my finder window, it won't let
me. Does anyone know a way of "manually" exporting a bundle, or
another alternative.
Thanks for any help.
Paul
Is there a way to customize the color of selected text? -- I.e., I want the foreground (text) color to be amber, but black when highlighted (the highlight itself would be another color, e.g., blue).
_________________________________________________________________
Express yourself wherever you are. Mobilize!
http://www.gowindowslive.com/Mobile/Landing/Messenger/Default.aspx?Locale=e…
Is there a way to modify the Open Terminal command so that it uses
tabs with Terminal.app? I have been trying to do this but my
applescript-fu is weak. :/
Best, Mark
It breaks identically on my Leopard laptop at home. I noticed in Subversion
that there's a blurb about it not working in Leopard, and I just thought I'd
mention it's broken in Tiger too.
Quad G5 2.5Ghz 4G AM
Hope this gets resolved soon. I'm doing a bunch of groovy work and having
to cut/paste into GroovyConsole is a drag!
Thanks,
-Chris
--
Chris Patti --- Y!: feoh -- AIM: chrisfeohpatti --- E-Mail: cpatti(a)gmail.com
"FORTRAN is just really good if you're really, REALLY twisted. Because the
obscene things people do in FORTRAN are just horrible." - James Gosling
Dear DIALOG2 popup developer,
I have a problem ;)
I want to insert a character which could have several names like
↓ arrow down
← arrow left
↑ arrow up
α greek alpha
β greek beta
My aim is to write e.g. "arrow" and the popup dialog shows all arrow
matches (only the glyph). Then I want to choose one and instead of
inserting "arrow" it should insert the chosen glyph. Fine. I tried it
and I had partly success.
####
First problem:
for the suggestions I have to write:
{display="↓";match=down;},{display="↓";match=arrow;}
this leads, of course, to having two ↓ in the list.
Why not write:
{display="↓";matches=("down","arrow");}
In other words to allow more than one match.
####
Second problem:
If I want to do that I have to use the options -w for wait, because I
want to replace e.g. "arrow" by my chosen glyph. Fine. But if I delete
5 characters to show all suggestions I do not see what I'm writing
whereby the popup menu does its job perfectly.
####
Third problem:
If I type e.g. "arr" the popup dialog finds all matches beginning with
"arr". But it would be nice to have an option to show only those items
matching exactly. E.g. I have to type "arrow" to show all 'arrow's not
only "a" or "ar" etc.
##########
Here's a first naïve example command:
Input: Selected Text or Word
Output: Replace Selected Text
Command:
RES=$(echo '{suggestions=({display="↓";match=down;},
{display="↓";match=arrow;},{display="↑";match=arrow;},
{display="←";match=arrow;},{display="α";match=greek;},
{display="α";match=alpha;},{display="β";match=greek;},
{display="β";match=beta;});}' | "$DIALOG" popup -iwf
"$TM_CURRENT_WORD")
RES=$(echo "$RES" | grep display | perl -Xpe 's/.*?display = "(.*?)";/
$1/;s/\\U([0-9A-F]+)/chr(hex($1))/iesg;')
echo -n "$RES"
My overall aim is to provide a possibility to insert a glyph by
looking for words in its Unicode name.
Or is the DIALOG2 popup dialog not the right tool for it, meaning
should one write its own rountine for that?
Or is there a better way to do it?
Thanks a lot for any hints in advance!
--Hans