[TxMt] Regex and grammar language

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


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 {}


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@] 

More information about the textmate mailing list