Wednesday, August 24, 2011

Re: Syntax file contains/containedin not respected.


On Wed, Aug 24, 2011 at 15:58, Ben Fritz <fritzophrenic@gmail.com> wrote:

 Can you post some sample code where it does not highlight properly?


For instance :

/**
 * My superb function
 * @returns something via the returns property.
 */
Something::returns = ->
    @returns = "hello world"

The syntax highlighting code for the @returns is what I sent earlier. Problem is, the @returns in the comment gets highlighted, but so does the one in the function.

There is another @\w\+ rule that gets supersceded by the javaScriptDocTag, independantly of which one is declared first (and independantly of the "contained" modifier I put on the doctag rules).

I've tried the contains= contained and containedin approaches to no avail. The only way it will not get highlighted is to remove the javaScriptComment tags altogether.

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