Charles Campbell wrote:
danabble wrote:
and a word of any sort (keyword or match) that starts before position
72, but extends after 72 has priority (rule 3).
Is there a way to have syntax highlighting region-like rule that takes
precedence over everything else? Because it does to the compiler.
Here's a couple of suggestions:
* set cc=80
* match Error /\%>79c.*$/
Neither of these are syntax rules, admittedly.
Hmm, I see where you want items highlighted past column 72, not 80.
Minor changes:
* set cc=72
* match Error /\%>71c.*$/
These can, in fact, be placed in your syntax file
(~/.vim/syntax/fortran.vim), even though they are not, strictly
speaking, syntax highlighting commands. It'd be better to put them into
~/.vim/ftplugin/fortran/fortran.vim to conform to usual vim practice though.
A more syntax-based approach would require you convert all keywords into
matches, and to have them contain a new syntax group as shown:
Current: (example)
syn keyword fortranStructure dimension
Change Keywords to Matches: (example)
syn match fortranStructure "\<dimension\>"
Specify new fortranPast72 group:
syn match fortranPast72 '\%>71c.*$' containedin=ALL
hi link fortranPast72 Error
Regards,
Chip Campbell
--
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