-
Notifications
You must be signed in to change notification settings - Fork 745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for $ in fortran identifiers and clickable .i include files. #4610
Comments
Care to submit a PR ? |
@vladak Yes but why aren't the include files clickable (without href) even after adding suffixes. I'll have that and then submit PR. |
For the include directive I think this needs to be processed by the Fortran analyzer. I believe https://github.com/oracle/opengrok/blob/master/opengrok-indexer/src/main/jflex/analysis/fortran/FortranSymbolTokenizer.lex needs to obtain similar rule as e.g. in
Is the file include a feature of (modern) Fortran actually ? Just asking, I have never worked with Fortran before. |
The Fortran lexing rules already contain file/path matching: opengrok/opengrok-indexer/src/main/jflex/analysis/fortran/FortranXref.lex Lines 166 to 184 in 0e0e613
opengrok/opengrok-indexer/src/main/jflex/analysis/c/CXref.lex Lines 98 to 113 in 0e0e613
Further, there is also
|
No it was there since Fortran 77 include 'file' or include "file" . Below is the link |
Implementation according to discussion based on vladak oracle#4610 Signed-off-by: Navin P <navinp0304@gmail.com>
Implementation according to discussion based on vladak oracle#4610 Signed-off-by: Navin P S <navinp0304@gmail.com>
Submitted |
How do i make #include 'file.i' as clickable i.e it is showing as text not a link ? For me #include "file.h" works as a clickable link.
I tried adding it in suffix but it doesn't work. The format is #include 'file.i' not "file.i".
Ctags has added support for fortran identifiers with $
universal-ctags/ctags#4033
Please add support for opengrok as well. This works well for me.
The text was updated successfully, but these errors were encountered: