On Sat, Jun 20, 2009 at 10:59 AM, Jeri Raye wrote:
>
> Hi,
>
> I'm trying to define labels and numbers in a syntax file.
> But my label definition makes my numbers that start on the beginning of
> a line seen as a label, which shouldn't.
>
> I have the following in my suntax file:
> +-------------------------------------------------------------+

Try replacing these two lines

> syn match pbLabel           "^\w\+\>:"
> syn match pbLabel           "^\w\+\>"

With

    syn match pbLabel "^[[:alpha:]][[:alnum:]]*:\="

That is, it matches an alphabetic character at beginning of line,
followed by any number of alphabetic or numeric characters, followed
by an optional colon.

~Matt

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to