[TxMt] language definition regexp question

Peter Michaux petermichaux at gmail.com
Thu Mar 1 20:32:02 UTC 2007


Hi,

In JavaScript I would like every instance of the word "self" and
"parent" to be orange except when they appear as "window.self" or
"window.parent". How can I specify these. What I have so far is...

         {    name = 'window.js';
              match = '\bwindow.self\b';
         },

(Which is wrong, of course.)

Thanks for any help!

Peter



More information about the textmate mailing list