-
Notifications
You must be signed in to change notification settings - Fork 788
Add support for $ in fortran identifiers and clickable .i include files. #4642
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
Merged
Merged
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
6a4797e
Add support for $ in fortran identifiers and clickable .i include files.
navinp0304 d5710e7
Merge branch 'master' into master
navinp0304 1a75e38
Merge branch 'master' into master
navinp0304 7e4f3e8
Update opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/f…
navinp0304 41deffe
Merge branch 'master' into master
navinp0304 bd9eefb
Merge branch 'oracle:master' into master
navinp0304 65a89a3
Implement changes suggested by vladk
navinp0304 84c1728
fix the onNonSymbolMatched() arguments based on vladk review comment
navinp0304 d74a502
Space around binary operators. Review comment by vladak
navinp0304 6519dc3
add space after comma
vladak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
* Portions Copyright (c) 2017, Chris Fraire <[email protected]>. | ||
*/ | ||
|
||
Identifier = [a-zA-Z_] [a-zA-Z0-9_]* | ||
Identifier = [a-zA-Z_] [a-zA-Z0-9_$]* | ||
Label = [0-9]+ | ||
|
||
Number = ([0-9]+\.[0-9]+|[0-9][0-9]* | [0][xX] [0-9a-fA-F]+ )([uUdDlL]+)? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 34 additions & 22 deletions
56
opengrok-indexer/src/test/resources/analysis/fortran/sample_xref.html
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,3 +52,7 @@ IPIV | |
B | ||
LDB | ||
INFO | ||
SUBF77$ | ||
VARF77$ | ||
VARF77$ | ||
SUBF77$ |
60 changes: 48 additions & 12 deletions
60
opengrok-indexer/src/test/resources/analysis/fortran/sampletags
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,52 @@ | ||
!_TAG_EXTRA_DESCRIPTION anonymous /Include tags for non-named objects like lambda/ | ||
!_TAG_EXTRA_DESCRIPTION fileScope /Include tags of file scope/ | ||
!_TAG_EXTRA_DESCRIPTION pseudo /Include pseudo tags/ | ||
!_TAG_EXTRA_DESCRIPTION subparser /Include tags generated by subparsers/ | ||
!_TAG_FIELD_DESCRIPTION epoch /the last modified time of the input file (only for F\/file kind tag)/ | ||
!_TAG_FIELD_DESCRIPTION file /File-restricted scoping/ | ||
!_TAG_FIELD_DESCRIPTION input /input file/ | ||
!_TAG_FIELD_DESCRIPTION name /tag name/ | ||
!_TAG_FIELD_DESCRIPTION pattern /pattern/ | ||
!_TAG_FIELD_DESCRIPTION typeref /Type and name of a variable or typedef/ | ||
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/ | ||
!_TAG_FILE_SORTED 0 /0=unsorted, 1=sorted, 2=foldcase/ | ||
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/ | ||
!_TAG_KIND_DESCRIPTION!Fortran E,enum /enumerations/ | ||
!_TAG_KIND_DESCRIPTION!Fortran L,local /local, common block, and namelist variables/ | ||
!_TAG_KIND_DESCRIPTION!Fortran M,method /type bound procedures/ | ||
!_TAG_KIND_DESCRIPTION!Fortran N,enumerator /enumeration values/ | ||
!_TAG_KIND_DESCRIPTION!Fortran S,submodule /submodules/ | ||
!_TAG_KIND_DESCRIPTION!Fortran b,blockData /block data/ | ||
!_TAG_KIND_DESCRIPTION!Fortran c,common /common blocks/ | ||
!_TAG_KIND_DESCRIPTION!Fortran e,entry /entry points/ | ||
!_TAG_KIND_DESCRIPTION!Fortran f,function /functions/ | ||
!_TAG_KIND_DESCRIPTION!Fortran i,interface /interface contents, generic names, and operators/ | ||
!_TAG_KIND_DESCRIPTION!Fortran k,component /type and structure components/ | ||
!_TAG_KIND_DESCRIPTION!Fortran l,label /labels/ | ||
!_TAG_KIND_DESCRIPTION!Fortran m,module /modules/ | ||
!_TAG_KIND_DESCRIPTION!Fortran n,namelist /namelists/ | ||
!_TAG_KIND_DESCRIPTION!Fortran p,program /programs/ | ||
!_TAG_KIND_DESCRIPTION!Fortran s,subroutine /subroutines/ | ||
!_TAG_KIND_DESCRIPTION!Fortran t,type /derived types and structures/ | ||
!_TAG_KIND_DESCRIPTION!Fortran v,variable /program (global) and module variables/ | ||
!_TAG_OUTPUT_EXCMD mixed /number, pattern, mixed, or combineV2/ | ||
!_TAG_OUTPUT_FILESEP slash /slash or backslash/ | ||
!_TAG_OUTPUT_MODE u-ctags /u-ctags or e-ctags/ | ||
!_TAG_OUTPUT_VERSION 0.0 /current.age/ | ||
!_TAG_PARSER_VERSION!Fortran 1.1 /current.age/ | ||
!_TAG_PATTERN_LENGTH_LIMIT 96 /0 for no limit/ | ||
!_TAG_PROC_CWD /home/navin.parakkal/OpenGrok/opengrok-indexer/src/test/resources/analysis/fortran/ // | ||
!_TAG_PROGRAM_AUTHOR Universal Ctags Team // | ||
!_TAG_PROGRAM_NAME Universal Ctags /Derived from Exuberant Ctags/ | ||
!_TAG_PROGRAM_URL https://ctags.io/ /official site/ | ||
!_TAG_PROGRAM_VERSION 0.0.0 /b13cb551/ | ||
!_TAG_OUTPUT_MODE u-ctags /u-ctags or e-ctags/ | ||
DGESV grok.f /^ SUBROUTINE DGESV(/;" subroutine line:173 signature:(N, NRHS, A, LDA, IPIV, B, LDB, INFO) | ||
INFO grok.f /^ INTEGER INFO,/;" local line:181 subroutine:DGESV | ||
LDA grok.f /^ INTEGER INFO, LDA,/;" local line:181 subroutine:DGESV | ||
LDB grok.f /^ INTEGER INFO, LDA, LDB,/;" local line:181 subroutine:DGESV | ||
N grok.f /^ INT/;" local line:181 subroutine:DGESV | ||
NRHS grok.f /^ INTEGER INFO, LDA, LDB, N, NRHS$/;" local line:181 subroutine:DGESV | ||
IPIV grok.f /^ INTEGER IPIV(/;" local line:184 subroutine:DGESV | ||
A grok.f /^ DOUBLE PRECISION A(/;" local line:185 subroutine:DGESV | ||
B grok.f /^ DOUBL/;" local line:185 subroutine:DGESV | ||
!_TAG_PROGRAM_VERSION 6.1.0 /p6.1.20240714.0/ | ||
A sample.f /^ DOUBLE PRECISION A( LDA,/;" L subroutine:DGESV file: | ||
B sample.f /^ DOUBLE PRECISION A( LDA, * ), B( LDB,/;" L subroutine:DGESV file: | ||
DGESV sample.f /^ SUBROUTINE DGESV(/;" s | ||
INFO sample.f /^ INTEGER INFO,/;" L subroutine:DGESV file: | ||
IPIV sample.f /^ INTEGER IPIV(/;" L subroutine:DGESV file: | ||
LDA sample.f /^ INTEGER INFO, LDA,/;" L subroutine:DGESV file: | ||
LDB sample.f /^ INTEGER INFO, LDA, LDB,/;" L subroutine:DGESV file: | ||
N sample.f /^ INTEGER INFO, LDA, LDB, N, NR/;" L subroutine:DGESV file: | ||
NRHS sample.f /^ INTEGER INFO, LDA, LDB, N, NRHS$/;" L subroutine:DGESV file: | ||
SUBF77$ sample.f /^ SUBROUTINE SUBF77$(/;" s | ||
VARF77$ sample.f /^ INTEGER VARF77\$$/;" L subroutine:SUBF77$ file: |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.