[TxMt] Re: Fortran Folding Markers
throw-away-1 at macromates.com
Tue Aug 15 20:52:44 UTC 2006
On 15/8/2006, at 12:55, guerom00 wrote:
>> I didn’t fully understand the first branch of the start pattern. You
>> can have type + random text repeated zero or more times, and then the
>> subroutine/program/module/function keyword?
> I wanted to take care of the “function” declaration where you can
> indicate the type of the function on the very first line like so :
> real*8 function blabla()
> some code here
> end function blabla
> So the start marker must not simply be '^\s*(function)\b' or so...
> Because I always use an asterisk in my type declaration, I made it
> that (I always use : real*4, real*8, integer*4, complex*8 for
> type declaration) and not the “end function” line (which should
> be picked by the stop marker).
Okay, the actual rule matches multiple types in front of function, like:
real*8 complex*4 function blabla()
So that rule could also be simplified slightly.
More information about the textmate