diff options
author | Marc Weber <marco-oweber@gmx.de> | 2009-10-18 04:43:35 +0000 |
---|---|---|
committer | Marc Weber <marco-oweber@gmx.de> | 2009-10-18 04:43:35 +0000 |
commit | 87a60a6afd0a62edc0a346fbbb0f50f5a1a56edc (patch) | |
tree | 06d1bc5bdffc26fd2688a7fbbfd5b679035dfe02 /pkgs/development/tools/misc/ctags | |
parent | f237bad7b0884439cf0f5baa7dc25de03c6cbd51 (diff) | |
download | nixpkgs-87a60a6afd0a62edc0a346fbbb0f50f5a1a56edc.tar nixpkgs-87a60a6afd0a62edc0a346fbbb0f50f5a1a56edc.tar.gz nixpkgs-87a60a6afd0a62edc0a346fbbb0f50f5a1a56edc.tar.bz2 nixpkgs-87a60a6afd0a62edc0a346fbbb0f50f5a1a56edc.tar.lz nixpkgs-87a60a6afd0a62edc0a346fbbb0f50f5a1a56edc.tar.xz nixpkgs-87a60a6afd0a62edc0a346fbbb0f50f5a1a56edc.tar.zst nixpkgs-87a60a6afd0a62edc0a346fbbb0f50f5a1a56edc.zip |
fix ctags wrapper js regex
svn path=/nixpkgs/trunk/; revision=17856
Diffstat (limited to 'pkgs/development/tools/misc/ctags')
-rw-r--r-- | pkgs/development/tools/misc/ctags/wrapped.nix | 3 |
1 files changed, 2 insertions, 1 deletions
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 |