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
  • Loading branch information
navinp0304 committed Nov 16, 2024
1 parent b57a375 commit a9a10ab
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 a9a10ab

Please sign in to comment.