Skip to content

Commit 5289f7a

Browse files
navinp0304vladak
andauthored
Changing the 2nd argument of substring due to errors in indexing fortran code by FortranXref.lex (#4689)
Co-authored-by: Vladimir Kotal <[email protected]>
1 parent 975ea6f commit 5289f7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opengrok-indexer/src/main/jflex/analysis/fortran/FortranXref.lex

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ File = [a-zA-Z]{FNameChar}* "." ("i"|"inc")
9393
onNonSymbolMatched(cmatch.substring(0, 1), yychar);
9494
String file = cmatch.substring(1, cmatch.length() - 1);
9595
onFilelikeMatched(file, yychar + 1);
96-
onNonSymbolMatched(cmatch.substring(cmatch.length() - 1, 1), yychar + 1 + file.length());
96+
onNonSymbolMatched(cmatch.substring(cmatch.length() - 1, cmatch.length()), yychar + 1 + file.length());
9797
}
9898

9999
/*{Hier}

0 commit comments

Comments
 (0)