Skip to content

Commit

Permalink
Fixed ctags regexps for JavaScript and therefore made TagList open by…
Browse files Browse the repository at this point in the history
… default in Vim.
  • Loading branch information
Emilis Dambauskas committed Feb 13, 2014
1 parent dc13c21 commit 4e97ecc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .ctags
Expand Up @@ -8,7 +8,7 @@
--regex-javascript=/(,|(;|^)[ \t]*(var|let|([A-Za-z_$][A-Za-z0-9_$.]+\.)*))[ \t]*([A-Za-z0-9_$]+)[ \t]*=[ \t]*[0-9]+/\5/,number/
--regex-javascript=/(,|(;|^)[ \t]*(var|let|([A-Za-z_$][A-Za-z0-9_$.]+\.)*))[ \t]*([A-Za-z0-9_$]+)[ \t]*=[ \t]*.+([,;=]|$)/\5/v,variable/
--regex-javascript=/(,|(;|^)[ \t]*(var|let|([A-Za-z_$][A-Za-z0-9_$.]+\.)*))[ \t]*([A-Za-z0-9_$]+)[ \t]*[ \t]*([,;]|$)/\5/v,variable/
--regex-javascript=/function[ \t]+([A-Za-z0-9_$]+)[ \t]*\([^)]*\)/\1/f,function/
"--regex-javascript=/function[ \t]+([A-Za-z0-9_$]+)[ \t]*\([^)]*\)/\1/f,function/

--regex-javascript=/(,|^)[ \t]*([A-Za-z_$][A-Za-z0-9_$]+)[ \t]*:[ \t]*\{/\2/p,object/
--regex-javascript=/(,|^)[ \t]*([A-Za-z_$][A-Za-z0-9_$]+)[ \t]*:[ \t]*function[ \t]*\(/\2/f,function/
Expand Down
2 changes: 1 addition & 1 deletion .vimrc
Expand Up @@ -111,7 +111,7 @@ set directory=.,./.backup,/tmp
" TagList plugin options:
let tlist_php_settings = 'php;c:class;d:constant;f:function'
let tlist_javascript_settings = 'javascript;f:function'
let Tlist_Auto_Open = 0
let Tlist_Auto_Open = 1
let Tlist_Compact_Format = 1
let Tlist_Exit_OnlyWindow = 1
let Tlist_Show_One_File = 1
Expand Down

0 comments on commit 4e97ecc

Please sign in to comment.