Skip to content

Commit

Permalink
Javascript : prevent bogus results caused by ctags binary defaults
Browse files Browse the repository at this point in the history
The bundled ctags binary is configured to search for javascript
“properties”, yielding bogus results. Fixes
atom#180 .
  • Loading branch information
dperetti committed Jun 6, 2016
1 parent ffd8eae commit adf0a17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ctags-config
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit adf0a17

Please sign in to comment.