Well, almost, it's columns 1 through 5 for the label which is numeric and thus resembles a line number. It isn't necessary, though, so the first five columns are empty for most lines.
Comment lines have 'C' or '*' in the first column or '!' as the first character. Continuation lines have any character but '0' in the sixth column, so it's common to count the continuation lines by putting single digits in column 6. Statements occupy columns 7 to 72, leaving eight characters for a line number on a 80 character punched card. Most, if not all compilers allow more than that. And, to quote from Annex B 2.6 on obsolescent features of the Fortran 2003 standard: Fixed form source was designed when the principal machine-readable input medium for new programs was punched cards. Now that new and amended programs are generally entered via keyboards with screen displays, it is an unnecessary overhead, and is potentially error-prone, to have to locate positions 6, 7, or 72 on a line. Free form source was designed expressly for this more modern technology. Cheers Hendrik On Jul 12, 2010, at 16-53, Tony Mechelynck wrote: > On 12/07/10 16:19, Hendrik Merx wrote: >> Though not standard-conforming, it is quite common to use a tab instead of >> six spaces in front of a Fortran fixed source form line where the first five >> columns are reserved for numeric labels and the sixth column indicating a >> continuation line. Patching fortran.vim with > [...] > > I thought 1-6 were the line number, and 7 was C for comment, or 1 (then 2 > etc.) for continuation? > > > Best regards, > Tony. > -- > Q: Why did the tachyon cross the road? > A: Because it was on the other side. -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
