Skip to content

Fortran: Interpret percent sign as operator

Fortran uses the "%" sign to access member functions and attributes of custom types, see for example: https://stackoverflow.com/questions/8100131/what-does-mean-do-in-fortran

Unlike the more common "." (dot) symbol used by other languages, a percent sign results in significant visual clutter, particularly in longer chains of member access, unless it is properly highlighted.

For better readability it is now colored as an operator.

Merge request reports