-
Notifications
You must be signed in to change notification settings - Fork 793
Description
Can we add private the regex for scala definitions?
The current Scala regex (I think) is:
--regex-scala=/^[[:space:]]*((abstract|final|sealed|implicit|lazy|)[[:space:]]*)*def[[:space:]]+([a-zA-Z0-9_]+)/\3/m,methods/
I would like to know if we could add private?
--regex-scala=/^[[:space:]]*((private|abstract|final|sealed|implicit|lazy|)[[:space:]]*)*def[[:space:]]+([a-zA-Z0-9_]+)/\3/m,methods/
it just happens that the coding done where I am uses the term private a lot when doing a def statement.
I'm just not a coder, or else I'd try and do the commit myself for opengrok.
Here is the line of code to modify (assuming I got it correct):
opengrok/opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/Ctags.java
Line 332 in 81b586e
| command.add("--regex-scala=/^[[:space:]]*((abstract|final|sealed|implicit|lazy)[[:space:]]*)*def[[:space:]]+([a-zA-Z0-9_]+)/\\3/m,methods/"); |
OpenGrok Build: opengrok-1.2.9
U-Ctags build date: Compiled: Jun 13 2019, 15:57:49
git version 2.22.0
Server version: Apache Tomcat/8.5.42
Server built: Jun 4 2019 20:29:04 UTC
Server number: 8.5.42.0
OS Name: Linux
OS Version: 3.10.0-327.el7.x86_64
Architecture: amd64
Java Home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64/jre
JVM Version: 1.8.0_212-b04
JVM Vendor: Oracle Corporation
CATALINA_BASE: /opt/tomcat
CATALINA_HOME: /opt/tomcat