[TxMt] Regex and grammar language

Charilaos Skiadas cskiadas at gmail.com
Tue Sep 18 00:54:42 UTC 2007


On Sep 17, 2007, at 11:46 AM, Alain Matthes wrote:

> PS : i've a problem to understand this line :
>
> {	name = 'meta.space-after-command.latex';
> match = '(?=\s)(?<=\\[\w@]|\\[\w@]{2}|\\[\w@]{3}|\\[\w@]{4}|\\[\w@] 
> {5}|\\[\w@]{6})\s';

This command uses fixed length look-behinds to get a scope for the  
space right after a command, so that we can get some things triggered  
when the caret is at the end of a command. It is used by the "Command  
Completion" command.

Haris Skiadas
Department of Mathematics and Computer Science
Hanover College







More information about the textmate mailing list