I'm working with a "column-fixed" language called LSDYNA.
In this language the lines are separated in 10 character wide columns.
Each column can contain e.g an integer definition, proceeded or followed by
whitespaces
So with whitespaces marked with . the following defs of colums 1 and 2 are ok:
# column 1 | column 2
_ _ _ _ _ _ _ 8 _ _ | 1 2 3 4 5 6 _ _ _ _ |
_ _ 2 1 2 3 _ _ _ _ | _ _ _ _ _ _ _ 3 3 3 |
_ _ _ _ _ _ _ 1 0 0 | 1 1 2 _ _ _ _ _ _ _ |
but not
_ _ _ _ _ _ 1 1 1 1 | 1 _ _ _ _ 3 3 3 3 3 |
I tried to write a syntax file def, but I wasn't able to tell vim that my
regex should match exactly 10 characters:
regex for an integer preceeded/followed by whitespaces
/\s*[1-9][0-9]*\s*/
but how to tell vim that this regex should only match e.g column 2?
I tried using the options ms,me,hs,he but after all I couldn't restrict the
regex.
Any hints?
Thank you avance..
Edwin
--
You received this message from the "vim_use" 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
No comments:
Post a Comment