3
0
Fork 0
forked from mirrors/nixpkgs

fix ctags wrapper js regex

svn path=/nixpkgs/trunk/; revision=17856
This commit is contained in:
Marc Weber 2009-10-18 04:43:35 +00:00
parent f237bad7b0
commit 87a60a6afd

View file

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