mirror of https://github.com/bjeanes/dotfiles.git
Collect ctags definitions from all over
parent
a5469b2a39
commit
428621c274
13
freshrc
13
freshrc
|
@ -2,6 +2,16 @@
|
|||
|
||||
fresh freshshell/fresh bin/fresh --bin
|
||||
|
||||
fresh-options --file=~/.ctags
|
||||
fresh misc/ctags
|
||||
|
||||
fresh romainl/ctags-patterns-for-javascript ctagsrc
|
||||
fresh jb55/typescript-ctags .ctags
|
||||
fresh rust-lang/rust.vim ctags/rust.ctags
|
||||
fresh mmorearty/elixir-ctags .ctags
|
||||
fresh https://gist.github.com/noisesmith/ebe8b3f185e34a7de04b1189b21ba59b.git .ctags # Clojure
|
||||
fresh-options
|
||||
|
||||
fresh languages/clojure/lein/profiles.clj --file=~/.lein/profiles.clj
|
||||
fresh-options --file # each file as is
|
||||
fresh languages/ruby/gemrc
|
||||
|
@ -9,7 +19,6 @@ fresh-options --file # each file as is
|
|||
|
||||
fresh misc/ackrc
|
||||
fresh misc/agignore
|
||||
fresh misc/ctags
|
||||
fresh misc/inputrc
|
||||
fresh misc/nanorc
|
||||
fresh misc/psqlrc
|
||||
|
@ -30,7 +39,7 @@ fresh editors/vim/init.nvim --file ~/.config/nvim/init.vim
|
|||
fresh-options --file=~/.vimrc --marker='"'
|
||||
fresh editors/vim/vimrc
|
||||
fresh-options
|
||||
|
||||
|
||||
fresh-options --file=~/.zshrc --marker
|
||||
fresh shells/path.sh
|
||||
|
||||
|
|
66
misc/ctags
66
misc/ctags
|
@ -4,23 +4,7 @@
|
|||
--regex-ruby=/(^|;)[ \t]*event\(? *:([[:alnum:]_]+)/\2/f,function,aasm_event/
|
||||
--regex-ruby=/(^|;)[ \t]*event\(? *:([[:alnum:]_]+)/\2!/f,function,aasm_event/
|
||||
--regex-ruby=/(^|;)[ \t]*event\(? *:([[:alnum:]_]+)/\2?/f,function,aasm_event/
|
||||
|
||||
--langdef=Clojure
|
||||
--langmap=Clojure:.clj
|
||||
--langmap=Clojure:+.cljx
|
||||
--langmap=Clojure:+.cljs
|
||||
--regex-clojure=/\([ \t]*create-ns[ \t]+([-[:alnum:]*+!_:\/.?]+)/\1/n,namespace/
|
||||
--regex-clojure=/\([ \t]*def[ \t]+([-[:alnum:]*+!_:\/.?]+)/\1/d,definition/
|
||||
--regex-clojure=/\([ \t]*defn[ \t]+([-[:alnum:]*+!_:\/.?]+)/\1/f,function/
|
||||
--regex-clojure=/\([ \t]*defn-[ \t]+([-[:alnum:]*+!_:\/.?]+)/\1/p,private function/
|
||||
--regex-clojure=/\([ \t]*defmacro[ \t]+([-[:alnum:]*+!_:\/.?]+)/\1/m,macro/
|
||||
--regex-clojure=/\([ \t]*definline[ \t]+([-[:alnum:]*+!_:\/.?]+)/\1/i,inline/
|
||||
--regex-clojure=/\([ \t]*defmulti[ \t]+([-[:alnum:]*+!_:\/.?]+)/\1/a,multimethod definition/
|
||||
--regex-clojure=/\([ \t]*defmethod[ \t]+([-[:alnum:]*+!_:\/.?]+)/\1/b,multimethod instance/
|
||||
--regex-clojure=/\([ \t]*defonce[ \t]+([-[:alnum:]*+!_:\/.?]+)/\1/c,definition (once)/
|
||||
--regex-clojure=/\([ \t]*defstruct[ \t]+([-[:alnum:]*+!_:\/.?]+)/\1/s,struct/
|
||||
--regex-clojure=/\([ \t]*intern[ \t]+([-[:alnum:]*+!_:\/.?]+)/\1/v,intern/
|
||||
--regex-clojure=/\([ \t]*ns[ \t]+([-[:alnum:]*+!_:\/.?]+)/\1/n,namespace/
|
||||
--regex-ruby=/#[ \t]*(FIXME|TODO)[ \t]*\:*(.*)/\1/T,Tag,Tags/
|
||||
|
||||
--langdef=CoffeeScript
|
||||
--langmap=CoffeeScript:.coffee
|
||||
|
@ -28,27 +12,31 @@
|
|||
--regex-coffeescript=/^[ \t]*@?([A-Za-z.]+):.*[-=]>.*$/\1/f,function/
|
||||
--regex-coffeescript=/^[ \t]*([A-Za-z.]+)[ \t]+=.*[-=]>.*$/\1/f,function/
|
||||
--regex-coffeescript=/^[ \t]*([A-Za-z.]+)[ \t]+=[^->\n]*$/\1/v,variable/
|
||||
--regex-coffeescript=/#[ \t]*(FIXME|TODO)[ \t]*\:*(.*)/\1/T,Tag,Tags/
|
||||
|
||||
--regex-javascript=/([A-Za-z0-9._$]+)[ \t]*[:=][ \t]*\{/\1/,object/
|
||||
--regex-javascript=/([A-Za-z0-9._$()]+)[ \t]*[:=][ \t]*function[ \t]*\(/\1/,function/
|
||||
--regex-javascript=/function[ \t]+([A-Za-z0-9._$]+)[ \t]*\(([^)])\)/\1/,function/
|
||||
--regex-javascript=/([A-Za-z0-9._$]+)[ \t]*[:=][ \t]*\[/\1/,array/
|
||||
--regex-javascript=/([^= ]+)[ \t]*=[ \t]*[^"]'[^']*/\1/,string/
|
||||
--regex-javascript=/([^= ]+)[ \t]*=[ \t]*[^']"[^"]*/\1/,string/
|
||||
|
||||
--exclude=*.min.js
|
||||
--exclude=.git
|
||||
|
||||
--langdef=Elixir
|
||||
--langmap=Elixir:.ex.exs
|
||||
--regex-Elixir=/^[ \t]*def(p?)[ \t]+([a-z_][a-zA-Z0-9_?!]*)/\2/f,functions,functions (def ...)/
|
||||
--regex-Elixir=/^[ \t]*defcallback[ \t]+([a-z_][a-zA-Z0-9_?!]*)/\1/c,callbacks,callbacks (defcallback ...)/
|
||||
--regex-Elixir=/^[ \t]*defdelegate[ \t]+([a-z_][a-zA-Z0-9_?!]*)/\1/d,delegates,delegates (defdelegate ...)/
|
||||
--regex-Elixir=/^[ \t]*defexception[ \t]+([A-Z][a-zA-Z0-9_]*\.)*([A-Z][a-zA-Z0-9_?!]*)/\2/e,exceptions,exceptions (defexception ...)/
|
||||
--regex-Elixir=/^[ \t]*defimpl[ \t]+([A-Z][a-zA-Z0-9_]*\.)*([A-Z][a-zA-Z0-9_?!]*)/\2/i,implementations,implementations (defimpl ...)/
|
||||
--regex-Elixir=/^[ \t]*defmacro(p?)[ \t]+([a-z_][a-zA-Z0-9_?!]*)\(/\2/a,macros,macros (defmacro ...)/
|
||||
--regex-Elixir=/^[ \t]*defmacro(p?)[ \t]+([a-zA-Z0-9_?!]+)?[ \t]+([^ \tA-Za-z0-9_]+)[ \t]*[a-zA-Z0-9_!?!]/\3/o,operators,operators (e.g. "defmacro a <<< b")/
|
||||
--regex-Elixir=/^[ \t]*defmodule[ \t]+([A-Z][a-zA-Z0-9_]*\.)*([A-Z][a-zA-Z0-9_?!]*)/\2/m,modules,modules (defmodule ...)/
|
||||
--regex-Elixir=/^[ \t]*defprotocol[ \t]+([A-Z][a-zA-Z0-9_]*\.)*([A-Z][a-zA-Z0-9_?!]*)/\2/p,protocols,protocols (defprotocol...)/
|
||||
--regex-Elixir=/^[ \t]*Record\.defrecord[ \t]+:([a-zA-Z0-9_]+)/\1/r,records,records (defrecord...)/
|
||||
--regex-Elixir=/^[ \t]*test[ \t]+\"([a-z_][a-zA-Z0-9_?! ]*)\"*/\1/t,tests,tests (test ...)/
|
||||
--exclude=.svn
|
||||
--exclude=.hg
|
||||
--exclude=min
|
||||
--exclude=vendor
|
||||
--exclude=\*.min.\*
|
||||
--exclude=\*.map
|
||||
--exclude=\*.swp
|
||||
--exclude=\*.bak
|
||||
--exclude=\*.pyc
|
||||
--exclude=\*.class
|
||||
--exclude=\*.sln
|
||||
--exclude=\*.Master
|
||||
--exclude=\*.csproj
|
||||
--exclude=\*.csproj.user
|
||||
--exclude=\*.cache
|
||||
--exclude=\*.dll
|
||||
--exclude=\*.pdb
|
||||
--exclude=tags
|
||||
--exclude=cscope.\*
|
||||
--exclude=\*.tar.\*
|
||||
--exclude=dist
|
||||
--exclude=test
|
||||
--exclude=tests
|
||||
--exclude=.tmp
|
||||
--exclude=*bundle.*
|
||||
|
|
Loading…
Reference in New Issue