Skip to content

Commit 8d0f837

Browse files
committed
Relocate clojure options to addClojureSupport()
1 parent 658703f commit 8d0f837

File tree

1 file changed

+3
-4
lines changed
  • opengrok-indexer/src/main/java/org/opengrok/indexer/analysis

1 file changed

+3
-4
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/Ctags.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
/*
2121
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
22-
* Portions Copyright (c) 2017-2018, Chris Fraire <[email protected]>.
22+
* Portions Copyright (c) 2017-2019, Chris Fraire <[email protected]>.
2323
*/
2424
package org.opengrok.indexer.analysis;
2525

@@ -137,9 +137,6 @@ private void initialize() throws IOException {
137137
command.add(binary);
138138
command.add("--c-kinds=+l");
139139

140-
command.add("--langmap=clojure:+.cljs");
141-
command.add("--langmap=clojure:+.cljx");
142-
143140
// Workaround for bug #14924: Don't get local variables in Java
144141
// code since that creates many false positives.
145142
// CtagsTest : bug14924 "too many methods" guards for this
@@ -319,6 +316,8 @@ private void addKotlinSupport(List<String> command) {
319316
private void addClojureSupport(List<String> command) {
320317
command.add("--langdef=clojure"); // clojure support (patterns are from https://gist.github.com/kul/8704283)
321318
command.add("--langmap=clojure:+.clj");
319+
command.add("--langmap=clojure:+.cljs");
320+
command.add("--langmap=clojure:+.cljx");
322321

323322
command.add("--regex-clojure=/\\([[:space:]]*create-ns[[:space:]]+([-[:alnum:]*+!_:\\/.?]+)/\\1/n,namespace/");
324323
command.add("--regex-clojure=/\\([[:space:]]*def[[:space:]]+([-[:alnum:]*+!_:\\/.?]+)/\\1/d,definition/");

0 commit comments

Comments
 (0)