[TxMt] Better JavaScript functions
Andreas Wahlin
andreaswahlin at bredband.net
Mon Sep 19 09:39:45 UTC 2005
> { name = "meta.function.js";
> match = "^\\s*(var\\b)?\\s*([a-zA-Z_]\\w*)\\s=\\s*
> (function)\\s*\\(([^)]*)\\)";
> captures =
> { 1 = { name = "storage.type.js"; };
> 2 = { name = "entity.name.function.js"; };
> 3 = { name = "storage.type.function.js"; };
> 4 = { name = "variable.parameter.function.js"; };
> };
> },
Ar, I'll never get it right! The question mark up there near var
should of course be removed, thus
match = "^\\s*(var\\b)\\s*([a-zA-Z_]\\w*)\\s=\\s*
(function)\\s*\\(([^)]*)\\)";
hope someone finds this useful :)
Andreas
More information about the textmate
mailing list