@@ -149,12 +149,16 @@ private void initialize() throws IOException {
149
149
command .add ("--regex-golang=/var[[:space:]]+([a-zA-Z_][a-zA-Z0-9_]+)/\\ 1/v,var/" );
150
150
command .add ("--regex-golang=/type[[:space:]]+([a-zA-Z_][a-zA-Z0-9_]+)/\\ 1/t,type/" );
151
151
}
152
+
152
153
//temporarily use our defs until ctags will fix https://github.com/universal-ctags/ctags/issues/988
153
154
command .add ("--langdef=clojure" ); // clojure support (patterns are from https://gist.github.com/kul/8704283)
154
155
command .add ("--langmap=clojure:+.clj" );
156
+ if (!env .isUniversalCtags ()) {
157
+ command .add ("--regex-clojure=/\\ ([[:space:]]*defn[[:space:]]+([-[:alnum:]*+!_:\\ /.?]+)/\\ 1/f,function/" );
158
+ command .add ("--regex-clojure=/\\ ([[:space:]]*ns[[:space:]]+([-[:alnum:]*+!_:\\ /.?]+)/\\ 1/n,namespace/" );
159
+ }
155
160
command .add ("--regex-clojure=/\\ ([[:space:]]*create-ns[[:space:]]+([-[:alnum:]*+!_:\\ /.?]+)/\\ 1/n,namespace/" );
156
161
command .add ("--regex-clojure=/\\ ([[:space:]]*def[[:space:]]+([-[:alnum:]*+!_:\\ /.?]+)/\\ 1/d,definition/" );
157
- command .add ("--regex-clojure=/\\ ([[:space:]]*defn[[:space:]]+([-[:alnum:]*+!_:\\ /.?]+)/\\ 1/f,function/" );
158
162
command .add ("--regex-clojure=/\\ ([[:space:]]*defn-[[:space:]]+([-[:alnum:]*+!_:\\ /.?]+)/\\ 1/p,private function/" );
159
163
command .add ("--regex-clojure=/\\ ([[:space:]]*defmacro[[:space:]]+([-[:alnum:]*+!_:\\ /.?]+)/\\ 1/m,macro/" );
160
164
command .add ("--regex-clojure=/\\ ([[:space:]]*definline[[:space:]]+([-[:alnum:]*+!_:\\ /.?]+)/\\ 1/i,inline/" );
@@ -163,7 +167,6 @@ private void initialize() throws IOException {
163
167
command .add ("--regex-clojure=/\\ ([[:space:]]*defonce[[:space:]]+([-[:alnum:]*+!_:\\ /.?]+)/\\ 1/c,definition (once)/" );
164
168
command .add ("--regex-clojure=/\\ ([[:space:]]*defstruct[[:space:]]+([-[:alnum:]*+!_:\\ /.?]+)/\\ 1/s,struct/" );
165
169
command .add ("--regex-clojure=/\\ ([[:space:]]*intern[[:space:]]+([-[:alnum:]*+!_:\\ /.?]+)/\\ 1/v,intern/" );
166
- command .add ("--regex-clojure=/\\ ([[:space:]]*ns[[:space:]]+([-[:alnum:]*+!_:\\ /.?]+)/\\ 1/n,namespace/" );
167
170
168
171
command .add ("--langdef=kotlin" );
169
172
command .add ("--langmap=kotlin:+.kt" );
0 commit comments