[TxMt] Regex and grammar language

Alain Matthes alain.matthes at mac.com
Mon Sep 17 15:46:39 UTC 2007


hello

I work actually on a new bundle LaTeX_Author and I would like If  
someone have  an idea to code the control's structures below :

I think that's  that's very common in a lot of languages :

% from package ifthen.sty


*    \ifthenelse{test}{then clause}{else clause}

*    \whiledo{test}{while clause}

% from package pgffor.sty

*    \foreach \var in {list}{   }

\from TeX

*   \@for\var:={list}\do{  }

I would like to have a color  for the control words and for {}

Thanks

Regards Alain

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';



More information about the textmate mailing list