From adf0a17fd391ee2994e388cece0e2b8f6f9c1152 Mon Sep 17 00:00:00 2001 From: Dominique PERETTI Date: Mon, 6 Jun 2016 14:24:29 +0200 Subject: [PATCH] Javascript : prevent bogus results caused by ctags binary defaults MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The bundled ctags binary is configured to search for javascript “properties”, yielding bogus results. Fixes https://github.com/atom/symbols-view/issues/180 . --- lib/ctags-config | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ctags-config b/lib/ctags-config index 7451c75..281546a 100644 --- a/lib/ctags-config +++ b/lib/ctags-config @@ -90,6 +90,7 @@ --regex-perl=/^\=head2[ \t]+(.+)/-- \1/p,pod,Plain Old Documentation/ --regex-perl=/^\=head[3-5][ \t]+(.+)/---- \1/p,pod,Plain Old Documentation/ +--JavaScript-kinds=-p --regex-JavaScript=/(,|(;|^)[ \t]*(var|let|const|([A-Za-z_$][A-Za-z0-9_$.]*\.)*))[ \t]*([A-Za-z0-9_$]+)[ \t]*=[ \t]*function[ \t]*\(/\5/,function/ --regex-JavaScript=/function[ \t]+([A-Za-z0-9_$]+)[ \t]*\([^)]*\)/\1/,function/ --regex-JavaScript=/(,|^|\*\/)[ \t]*([A-Za-z_$][A-Za-z0-9_$]+)[ \t]*:[ \t]*function[ \t]*\(/\2/,function/