Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding javascript support to ctags and tweaking taglist mapping

  • Loading branch information...
commit 1be19fcae41e7acfe3f17b37948fa635773af8d1 1 parent 1547da1
@jondavidjohn authored
Showing with 10 additions and 1 deletion.
  1. +8 −0 ctags
  2. +2 −1  vimrc
View
8 ctags
@@ -0,0 +1,8 @@
+--regex-JavaScript=/([A-Za-z0-9._$]+)[ \t]*[:=][ \t]*new[ \t]+Object\(/\1/o,object/
+--regex-JavaScript=/([A-Za-z0-9._$]+)[ \t]*[:=][ \t]*\{/\1/o,object/
+--regex-JavaScript=/([A-Za-z0-9._$()]+)[ \t]*[:=][ \t]*function[ \t]*\(/\1/f,function/
+--regex-JavaScript=/function[ \t]+([A-Za-z0-9._$]+)[ \t]*\([^\]\)]*\)/\1/f,function/
+--regex-JavaScript=/([A-Za-z0-9._$]+)[ \t]*[:=][ \t]*new[ \t]+Array\(/\1/a,array/
+--regex-JavaScript=/([A-Za-z0-9._$]+)[ \t]*[:=][ \t]*\[/\1/a,array/
+--regex-JavaScript=/([^= ]+)[ \t]*=[ \t]*[^""]'[^'']*/\1/s,string/
+--regex-JavaScript=/([^= ]+)[ \t]*=[ \t]*[^'']"[^""]*/\1/s,string/
View
3  vimrc
@@ -45,7 +45,8 @@ map <Leader>l <C-w><Right>
map <Leader>h <C-w><Left>
" TagList Toggle
-map <Leader>m :TlistToggle<Enter>
+map <Leader>m :TlistToggle<Enter><Leader>h
+let g:tlist_javascript_settings = 'javascript;s:string;a:array;o:object;f:function'
" GoTo File Equiv
map <Leader>f :FufFile<Enter>
Please sign in to comment.
Something went wrong with that request. Please try again.