On 6月26日, 下午3时26分, Jeri Raye <[email protected]> wrote:
> Hi,
>
> Is it possible that what is found with a syn match to reuse the
> content later on as the same?
>
> In other words:
>
> In my syntax file I have
> +-------------------------------------------------------------------------+
> syn match       pbConstant              "^[[:alpha:]][[:alnum:]]*:\="
>
> hi def link     pbConstant      TODO
> +-------------------------------------------------------------------------+
>
> In my code this highlights the words RS232, DISPLAY and KEYPAD of the
> following lines:
>
> RS232               EQU       $3D
> DISPLAY             EQU       $3E
> KEYPAD              EQU       $3F
>
> Is it possible to reuse the knowledge that RS232, DISPLAY and KEYPAD
> are pbConstant so that they can be highlighted in the lines below?
>
>                     LOAD      GP0, RS232
>                     LOAD      GP1, DISPLAY
>                     LOAD      GP2, KEYPAD
>
> Rgds,
> Jeri

I'm finding the same functions. In a word. Does Vim can offer a
function we can highlight some specfied words in a region? let's look
a example. there is a C program.

int main(void)
{
    int i;
    for (i = 0; i < len; ++i)
    {
         /* some code ... */
    }

    return 0;
}

can Vim make the "i" in main block has a color, just because i
appeared after int?
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to