Does anyone know how I can set up the .syn file to support multiple comment characters? The given format only seems to support one primary and one alternate comment character - but fortran can have several ("!", "C", "*" to name the ones that come to mind)...
Regards,
Chris
Fortran Syntax Help
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
Alex Angelopoulos
Re: Fortran Syntax Help
Chris, I don't recall all of that in FORTRAN commenting (of course it has been 8 years and I was using F77, so...)
By any chance, are tany of those multiline comment structures? If so, you can use that (which also supports an alternate).
Another choice that you might try is to modify the SYN file to tell it that one of those is an alternate quote character and that terms don't span lines; that would confuse your strings and comments somewhat, but might be an OK workaround if you use minimal strings in your FORTRAN files.
By any chance, are tany of those multiline comment structures? If so, you can use that (which also supports an alternate).
Another choice that you might try is to modify the SYN file to tell it that one of those is an alternate quote character and that terms don't span lines; that would confuse your strings and comments somewhat, but might be an OK workaround if you use minimal strings in your FORTRAN files.
-
Alex Angelopoulos
Re: Fortran Syntax Help
Forget everything I said. I forgot that the only requirement was that the comment character be in the first column of the line... 
There is no way to do this that I can see since there is no support for a special FORTRAN-like structure. One possible "fix" is to do a forced replacement regular expression that will change
^\.
to ! , C, or *, and have 2 of those set as the recognized comment characters.
There is no way to do this that I can see since there is no support for a special FORTRAN-like structure. One possible "fix" is to do a forced replacement regular expression that will change
^\.
to ! , C, or *, and have 2 of those set as the recognized comment characters.