From 87a60a6afd0a62edc0a346fbbb0f50f5a1a56edc Mon Sep 17 00:00:00 2001 From: Marc Weber Date: Sun, 18 Oct 2009 04:43:35 +0000 Subject: [PATCH] fix ctags wrapper js regex svn path=/nixpkgs/trunk/; revision=17856 --- pkgs/development/tools/misc/ctags/wrapped.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/misc/ctags/wrapped.nix b/pkgs/development/tools/misc/ctags/wrapped.nix index ff959d94141..07a4b01ad19 100644 --- a/pkgs/development/tools/misc/ctags/wrapped.nix +++ b/pkgs/development/tools/misc/ctags/wrapped.nix @@ -56,8 +56,9 @@ # var foo = function () { ... } # { # a : function () {} + # only recognize names up 100 characters. Else you'll be in trouble scanning compressed .js files. jsLang = [ - "--regex-JavaScript=/([^ \\t]*)[ \\t]*:[ \\t]*function[ \\t]*\\(/\\1/f/" + "--regex-JavaScript=/([^ \\t]{1,100})[ \\t]*:[ \\t]*function[ \\t]*\\(/\\1/f/" ]; # find foo in "foo =", don't think we can do a lot better