Skip to content

Instantly share code, notes, and snippets.

@xudejian
Last active December 21, 2015 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xudejian/6327257 to your computer and use it in GitHub Desktop.
Save xudejian/6327257 to your computer and use it in GitHub Desktop.
./ctags
--recurse=yes
--tag-relative=yes
--exclude=node_modules
--exclude=.git
--exclude=vendor
--exclude=coverage
--exclude=*-min.js
--exclude=*.min.js
--langdef=coffee
--langmap=coffee:.coffee
--regex-coffee=/(^|=\s)*class (\w+\.)*(\w+)(\s+extends\s+(\w+\.)*\w+)?$/\3/c,class/
--regex-coffee=/^\s*(module\.)?(exports\.)?@?(\w+):.*[-=]>.*$/\3/m,method/
--regex-coffee=/^\s*(module\.)?(exports\.)?(\w+)\s+=.*[-=]>.*$/\3/f,function/
--regex-coffee=/^\s*(\w+)\s+\??=[^->]*$/\1/v,variable/
--regex-coffee=/^\s*@(\w+)\s+\??=[^->]*$/\1/f,field/
--regex-coffee=/^\s*@(\w+):[^->]*$/\1/f,static field/
--regex-coffee=/^\s*(\w+):[^->]*$/\1/f,field/
--regex-coffee=/(constructor: \()@(\w+)/\2/f,field/
--regex-coffee=/(constructor: \()@\w+\s*,\s*@(\w+)/\2/f,field/
--regex-coffee=/(constructor: \()@\w+\s*,\s*@\w+\s*,\s*@(\w+)/\2/f,field/
--regex-coffee=/(constructor: \()@\w+\s*,\s*@\w+\s*,\s*@\w+\s*,\s*@(\w+)/\2/f,field/
--langdef=Clojure
--langmap=Clojure:.clj
--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]*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/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment