[SVN] Check a table of variables

Charilaos Skiadas skiadas at hanover.edu
Wed Apr 11 19:27:31 UTC 2007

On Apr 11, 2007, at 3:13 PM, Jakob Voos wrote:

> Hi and thanks for the helpful answers last time,
> Again I have two questions.
> 1.
> In the language I currently define, variables are defined this way  
> and can be called virtually without restriction:
> var varname
> So, It's not possible to track down a variable by its name, but by  
> its definition only.
> Is it possible to capture all variables defined and highlight them  
> whereever they appear later in the context?

Not possible at the moment.

> 2.
> The other question is probably less tricky and concerns regexp.
> I have defined a begin/end match to highlight something like this:
> #28+variable
> # defines the start of the match
> anything that is not a number ends the match. This way I can
> highlight the # and the number correctly (must be different from #).
> But I don't want anything more. However, the next character will
> always be identified as the end tag and therefore is highlighted  
> wrongly.
> I would like to exclude the end tag (which is no end tag because  
> there is none really)
> and let it have the normal formatting.
> I can't just colour up the + the way I want to, because it could  
> just as well be something
> else. E.g.:
> #variable
> Now, the "v" would have the wrong highlighting.
> Anything I can do against it?

Use lookaheads (or rather, a negative lookahead).

Haris Skiadas
Department of Mathematics and Computer Science
Hanover College

More information about the textmate-dev mailing list