[forwarding to Ajit]

> 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
> 
> --- vim.7.2/runtime/syntax/fortran.vim        2010-05-25 00:38:43.000000000 
> +0200
> +++ custom/fortran.vim        2010-07-09 23:47:36.000000000 +0200
> @@ -74,7 +74,7 @@
>      " Detection becomes more accurate and time-consuming if more lines
>      " are checked. Increase the limit below if you keep lots of comments at
>      " the very top of each file and you have a fast computer.
> -    let b:lmax = 250
> +    let b:lmax = 1024
>      if ( b:lmax > line("$") )
>        let b:lmax = line("$")
>      endif
> @@ -82,7 +82,7 @@
>      let b:ln=1
>      while b:ln <= b:lmax
>        let b:test = strpart(getline(b:ln),0,5)
> -      if b:test[0] !~ '[Cc*!#]' && b:test !~ '^ \+[!#]' && b:test =~ '[^ 
> 0-9\t]'
> +      if b:test !~ '^[ 0-9]*\t' && b:test !~ '^[Cc*]' && b:test !~ '^ *[!#]' 
> && b:test =~ '[^ 0-9\t]'
>       let b:fortran_fixed_source = 0
>       break
>        endif
> 
> enhances the detection heuristics to identify such tabbed lines correctly as 
> fixed form.
> 
> --
> 
> hendrik merx
> [email protected]

-- 
FIRST GUARD: Ah!  Now ... we're not allowed to ...
   SIR LAUNCELOT runs him through,  grabs his spear and stabs the other
   guard who collapses in a heap.  Hiccoughs quietly.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
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

Raspunde prin e-mail lui