FORTRAN syntax file

Discuss syntax highlighting or submit new syntax files.
User avatar
Rickard Johansson
Site Admin
Posts: 6623
Joined: 19 Jul 2006 14:29

Re: FORTRAN syntax file

Post by Rickard Johansson »

I'll see if I can come up with something...but 5 different ways to make a line comment seems a bit much. An array of different values is probably the best solution e.g. =C|D|c|d|!|.
jgodfrey
Posts: 471
Joined: 19 Aug 2011 23:02
Location: Missouri, USA

Re: FORTRAN syntax file

Post by jgodfrey »

Rickard Johansson wrote:I'll see if I can come up with something...but 5 different ways to make a line comment seems a bit much. An array of different values is probably the best solution e.g. =C|D|c|d|!|.
As I said, it's not mission critical. However, it seems to me that a regex might be the *best* solution. In the case of Fortran, something like this would be perfect.

Code: Select all

^[CcDd!]
A regex would eliminate the need for many of the comment "modifiers" that exist in the current definition syntax. But, whatever you think, including leaving it as is works for me.

Thanks,

Jeff
User avatar
Rickard Johansson
Site Admin
Posts: 6623
Joined: 19 Jul 2006 14:29

Re: FORTRAN syntax file

Post by Rickard Johansson »

Well, I added the ability to add several values to both LineCommentA and B. Values are separated by |.

So

LineCommentA=C|D|c|d|!

works fine in the next release.
jgodfrey
Posts: 471
Joined: 19 Aug 2011 23:02
Location: Missouri, USA

Re: FORTRAN syntax file

Post by jgodfrey »

Sounds good - thanks!

Jeff
Post Reply