Skip to content

Commit

Permalink
Changing the 2nd argument of substring due to errors in indexing fort…
Browse files Browse the repository at this point in the history
…ran code by FortranXref.lex (#4689)

Co-authored-by: Vladimir Kotal <[email protected]>
  • Loading branch information
navinp0304 and vladak authored Jan 6, 2025
1 parent 975ea6f commit 5289f7a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ File = [a-zA-Z]{FNameChar}* "." ("i"|"inc")
onNonSymbolMatched(cmatch.substring(0, 1), yychar);
String file = cmatch.substring(1, cmatch.length() - 1);
onFilelikeMatched(file, yychar + 1);
onNonSymbolMatched(cmatch.substring(cmatch.length() - 1, 1), yychar + 1 + file.length());
onNonSymbolMatched(cmatch.substring(cmatch.length() - 1, cmatch.length()), yychar + 1 + file.length());
}

/*{Hier}
Expand Down

0 comments on commit 5289f7a

Please sign in to comment.