Page 2 of 2

Re: FORTRAN syntax file

Posted: 29 Aug 2011 16:28
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|!|.

Re: FORTRAN syntax file

Posted: 29 Aug 2011 16:32
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

Re: FORTRAN syntax file

Posted: 29 Aug 2011 23:41
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.

Re: FORTRAN syntax file

Posted: 29 Aug 2011 23:54
by jgodfrey
Sounds good - thanks!

Jeff