On Mar 6, 3:05 pm, danabble <[email protected]> wrote:
> Thanks, guys, this worked perfectly!
>
> But it turns out I was wrong about knowing how to change the syntax
> file.  Specifically:
>
> How do I change the priority of the highlights?  I want the column
> warning to show even if it is a number which spans the maximum
> column.  I think these are the relevant lines in question:
>
> syn region fortranStringEx  start=+'+ end=+'+
> contains=fortranContinueMark,fortranLeftMargin,fortranSerialNumber
> syn region fortranString  start=+"+ end=+"+
> contains=fortranLeftMargin,fortranContinueMark,fortranSerialNumber
>
> "Flag items beyond column 180  (WAS: 72)
> syn match fortranSerialNumber excludenl "^.\{181,}$"lc=180
>
> HiLink fortranSerialNumber  Todo
> HiLink fortranStringEx  fortranString
> HiLink fortranString    String
>
> Is the highlight priority simply a matter of reordering the HiLink
> lines?  Because that didn't seem to work.
>

No, reordering the HiLink lines will accomplish nothing.

What do you expect to happen? What do you see instead? What I'm
expecting to happen, is anything after column 180 in lines which are
bigger than 180 columns will be highlighted with either Todo
highlighting, or whatever has been defined explicitly for
fortranSerialNumber.

Some input to test would help immensely to figure out what's going
wrong. I don't know anything about Fortran, but know enough about Vim
to help.

This simple test works exactly as I expect (80 'a' characters with a
blue background, the rest with red):

syn match blah excludenl "^.\{81,}$"lc=80
hi blah guibg=red
syn match bleeb 'a\+' contains=blah
hi bleeb guibg=blue

Text: a single line containing 114 'a' characters.

This may help you debug on your own:

http://vim.wikia.com/wiki/Identify_the_syntax_highlighting_group_used_at_the_cursor

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

Reply via email to