I’m planning to use ST to edit (mostly) “punch-card FORTRAN” using The TextMate FORTRAN bundle. I’m almost happy with this, but there’s a disconnect between this strictly column-oriented language and regexp-based expression matching. I would like to highlight
-
Line continuation characters (any character in column 6 in a non-comment line); and
-
Line sequence numbers (in columns 73-80)
Vim offers the c**%n** to match column n. I had been hoping to accomplish something like this using look-behinds:
(?<=^.{72})\S
but this doesn’t work and makes ST angry: syntax highlighting stops working until I restart ST.
Any helpful ideas of how to accomplish this with Oniguruma regexp’s, or any chance of getting a feature implemented for this?