I am making a syntax module for the Rebol language and I am having
trouble getting some keywords to match properly. This expression works:
match = "(action!|any-block!|any-function!|)"
but it is not ideal for I needed it to work with word boundaries. When
I include word boundaries in the regex, the rule is never matched.
match = "\\<(action!|any-block!|any-function!|)\\>"
I think this is a problem with the exclamation point "!". I have tried
using it with these escape sequences: \!, \\!, \041 \\041; with no luck
so far.
I had the same problem with keywords having the question mark "?" in
them, ie:
match = "\\<(about|abs|absolute|action?|add|alert|type?)\\>"
Ideas would be most welcome. Is there a limitation in the regex engine?
Thanks, Jaime
Allan,
I will do that, Ive asked her this morning, she's working on some other
stuff at the moment but I'll let you know as soon as possible. For myself
its a huge improvement, definitely works for me, I had made a few commands
that would wrap the current selection with quotes etc, but this is much
better, TextMate seems more and more to able to read my mind!
Nice one.
Chris
On 25/10/04 9:44 pm, "textmate-request(a)lists.macromates.com"
<textmate-request(a)lists.macromates.com> wrote:
> If you can make her use the latest beta, it would be cool to hear if
> the problem is fixed with the new rules -- even if it's no benefit for
> her (i.e. she doesn't use the new "wrap selection" or the general
> auto-insertion), alone the fact that it no longer clashes with her
> style would be a nice improvement!
>
> Of course other people are also welcome with their input! Just remember
> to give it at least five minutes before you deem it a success/failure!
> ;)
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Yes, I tried this also as these keys are the same as BBEdit and its one of
those habits I just cant shake...
Be nice to be able to change it.
On 26/10/04 3:27 am, "textmate-request(a)lists.macromates.com"
<textmate-request(a)lists.macromates.com> wrote:
> I can second Richard on this one. I have a US keyboard where [ and ]
> are on their own keys, but when I change by KeyBindings.dict to have:
>
> "@[" = "shiftLeft:";
> "@]" = "shiftRight:";
>
> ... TextMate doesn't pick it up.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
It's great to see such weekly improvement of this product!
Smart typing is almost incredibly cool. I like the 'no doubling if
there's text in front' and the 'surround selection with braces' is
awesome... I was about to try to write a macro or command to simulate
this.
Issue 1. Documents with syntax highlighting disabled don't have smart
typing turned on, regardless of setting. I assume this is a little
bug and not intended behavior.
Issue 2. If I'm typing in the middle of the ()'s, I still have to
right-arrow over the last ) to get to the rest of the typing. Am I
supposed to be able to Tab out of the braces somehow? Otherwise,
it's not really saving me a keystroke since -> and ) are about
equally hard for me to hit.
Alpha under OS9 had an interesting implementation of this, where they
used bullets like • to mark tab stops; then when you hit Tab,
you knew you were jumping to the next bullet...
- Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
Hi All,
In some (many?) applications, one can activate internet protocols by
command-clicking on a portion of text that looks like an internet
address. For instance in MacSOUP, a command-click on :
www.macromates.com
will launch <http://www.macromates.com/> in my prefered browser.
Other text editor can do so. Is that feature system-dependant? Could
it be easily implemented in TM?
Have a nice day,
--
Jo <W:00°04'37" ; N:47°15'36">
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72
I just installed the latest beta, and now all the Syntax highlighting
options I had set for PHP are gone (I can't stand the white background,
and prefer the darker ones).
Anyway, the bundle is still in my home directory (~Library/Application
Support/TextMate/Bundles), but does not show up in Syntax Highlight
As...I removed it from that directory, and reinstalled it, but no
luck...Any ideas????
Ben
So after a few days of (hopefully) well deserved vacation, I'm back to
TM development, and I'm currently adding support for printing.
But printing plain text from a plain text editor is really alien to me
;) so I was curious, what options do people expect to see?
I.e. should it always be soft wrapped? Should the font be changeable in
the printing dialog, or just use the document font? Should it have the
option to print with/without line numbers? Another tab-size? How about
syntax-highlight, should that be turned into b/w (there's a quartz
filter to turn it into grey-scale by default)? etc. etc.
If you do use/desire printing, let me know which “options” you use
(let's try not to mention all the things printing _could_ have) and
what stuff you actually do print (as plain text), especially the latter
will help me better understand the target audience for this feature!
Kind regards Allan
On 25. Oct 2004, at 14:02, José Campos wrote:
> I've just tried the print option in v.1.0.2ß1 : *very nice!*
> (apart from the vertical bar of the final "d"'s that are missing ;-)
Can you send me the resulting PDF (and also the text file and tell me
which font you used)?
> Could wrapping be improved so that the wrapping of a line that
> begins with tab(s) be done at the position of the tab instead of the
> left side of the page?
Yes, this sounds like a good idea (as an option).
Kind regards Allan
I just tried the new Print... option. I know syntax highlight is not on
and that it is using the document font but it seems that the text is too
big for a 12pt font. Marging are too high too.
Nice job.
--
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto(a)keltia.freenix.fr
Darwin snuadh.freenix.org Kernel Version 7.5.0: Wed May 12 16:58:24 PDT 2004
Ive been watching a few colleagues of mine using TextMate and one of them
has switched off the smart typing as she finds it doesn't really help her,
the reason is to do with the way she works, which admittedly is slightly
inefficient, but I myself have fallen foul of this as well, here's what she
does:
She types a word and then decides it needs to be a string, so she steps the
caret back to the start of the word and types a quote, but 2 quotes get
added so she then has to delete one of them, then she moves to the end of
the word and types the closing quote, and the same thing happens. So she
switches the feature off as its "annoying". Now she could make a command to
wrap a selection in quotes (as I have done), but it would be nicer if it
could be smarter about when to insert the pair.
Perhaps the pair of characters only get added if they are surrounded by
white space, or if some customisable regex is matched?
Chris
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________